From d9b816904a0f7f5109f2cee85b2d7aa3ddb4c9e9 Mon Sep 17 00:00:00 2001 From: lobo Date: Tue, 6 Oct 2026 09:06:51 +0200 Subject: [PATCH] feat(dashboard): add up-next tile to saved dashboard layouts --- src/main/resources/db/migration/V33__Up_Next_Tile.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/main/resources/db/migration/V33__Up_Next_Tile.sql diff --git a/src/main/resources/db/migration/V33__Up_Next_Tile.sql b/src/main/resources/db/migration/V33__Up_Next_Tile.sql new file mode 100644 index 0000000..cc72e96 --- /dev/null +++ b/src/main/resources/db/migration/V33__Up_Next_Tile.sql @@ -0,0 +1,6 @@ +-- Core item #3: the new UP_NEXT dashboard tile, added once at the end of every saved layout. A NULL layout +-- already shows the Frontend default, which has it. One-shot: a user who removes the tile later keeps it removed. +UPDATE user_settings +SET dashboard_tiles = array_append(dashboard_tiles, 'UP_NEXT:M') +WHERE dashboard_tiles IS NOT NULL + AND NOT EXISTS (SELECT 1 FROM unnest(dashboard_tiles) t WHERE t LIKE 'UP_NEXT:%');