diff --git a/ee/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql b/ee/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql index 793b8fa21..2ccc60080 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql @@ -5,8 +5,8 @@ $$ SELECT 'v1.5.0-ee' $$ LANGUAGE sql IMMUTABLE; -ALTER TYPE public.error_source ADD VALUE IF NOT EXISTS 'elasticsearch'; ALTER TABLE public.metrics ADD COLUMN IF NOT EXISTS active boolean NOT NULL DEFAULT TRUE; -COMMIT; \ No newline at end of file +COMMIT; +ALTER TYPE public.error_source ADD VALUE IF NOT EXISTS 'elasticsearch'; -- cannot add new value inside a transaction block \ No newline at end of file diff --git a/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql b/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql index 92c8bced7..cd386f5ab 100644 --- a/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql +++ b/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql @@ -5,8 +5,8 @@ $$ SELECT 'v1.5.0' $$ LANGUAGE sql IMMUTABLE; -ALTER TYPE public.error_source ADD VALUE IF NOT EXISTS 'elasticsearch'; ALTER TABLE public.metrics ADD COLUMN IF NOT EXISTS active boolean NOT NULL DEFAULT TRUE; -COMMIT; \ No newline at end of file +COMMIT; +ALTER TYPE public.error_source ADD VALUE IF NOT EXISTS 'elasticsearch'; -- cannot add new value inside a transaction block \ No newline at end of file