diff --git a/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql b/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql index 1b40d8123..c56342022 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql @@ -119,6 +119,9 @@ ALTER TABLE IF EXISTS events.clicks ALTER TABLE IF EXISTS public.metrics ADD COLUMN IF NOT EXISTS card_info jsonb NULL; +ALTER TABLE IF EXISTS public.users + ADD COLUMN IF NOT EXISTS settings jsonb DEFAULT NULL; + COMMIT; \elif :is_next diff --git a/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql b/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql index 8b9822207..d77f6daf3 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql @@ -200,6 +200,7 @@ $$ jwt_refresh_iat timestamp without time zone NULL DEFAULT NULL, data jsonb NOT NULL DEFAULT'{}'::jsonb, weekly_report boolean NOT NULL DEFAULT TRUE, + settings jsonb DEFAULT NULL, origin text NULL DEFAULT NULL, role_id integer REFERENCES public.roles (role_id) ON DELETE SET NULL, internal_id text NULL DEFAULT NULL, diff --git a/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql b/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql index ca43e218f..6631f5cfb 100644 --- a/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql +++ b/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql @@ -153,6 +153,10 @@ CREATE TABLE IF NOT EXISTS public.assist_events_aggregates_logs time BIGINT not null ); +ALTER TABLE IF EXISTS public.users + ADD COLUMN IF NOT EXISTS settings jsonb DEFAULT NULL; + + COMMIT; \elif :is_next diff --git a/scripts/schema/db/init_dbs/postgresql/init_schema.sql b/scripts/schema/db/init_dbs/postgresql/init_schema.sql index 9b5f368f4..e1767f43c 100644 --- a/scripts/schema/db/init_dbs/postgresql/init_schema.sql +++ b/scripts/schema/db/init_dbs/postgresql/init_schema.sql @@ -141,7 +141,8 @@ $$ jwt_refresh_jti integer NULL DEFAULT NULL, jwt_refresh_iat timestamp without time zone NULL DEFAULT NULL, data jsonb NOT NULL DEFAULT '{}'::jsonb, - weekly_report boolean NOT NULL DEFAULT TRUE + weekly_report boolean NOT NULL DEFAULT TRUE, + settings jsonb DEFAULT NULL ); CREATE TABLE public.basic_authentication