From bc88c573e514bb97be5319c5358dcd86869544fa Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 13 Feb 2024 15:04:31 +0100 Subject: [PATCH] Made focus mode disabled for clean installation admin user (#334) For more details https://github.com/ibexa/core/pull/334 Key changes: * Turned off "focus_mode" ibexa/admin-ui user preference for clean installation "admin" user. --- data/mysql/cleandata.sql | 3 +++ data/postgresql/cleandata.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/data/mysql/cleandata.sql b/data/mysql/cleandata.sql index 34612a823e..dee8a474d8 100644 --- a/data/mysql/cleandata.sql +++ b/data/mysql/cleandata.sql @@ -299,3 +299,6 @@ VALUES (11,28,'','',1), INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) VALUES (1,1000,10), (1,10,14); + +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/data/postgresql/cleandata.sql b/data/postgresql/cleandata.sql index e241addbbf..7c63933b18 100644 --- a/data/postgresql/cleandata.sql +++ b/data/postgresql/cleandata.sql @@ -300,6 +300,9 @@ INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") VALUES (1, 1000, 10), (1, 10, 14); +INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; + -- Set proper sequence values after inserting data SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state;