From 37349d8fcad320f71bbc5649ccb3c7d3111520c8 Mon Sep 17 00:00:00 2001 From: amentis Date: Wed, 29 Nov 2023 17:07:40 +0200 Subject: [PATCH] fix sql script --- dmp-db-scema/updates/00.01.026_addLanguage.sql | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/dmp-db-scema/updates/00.01.026_addLanguage.sql b/dmp-db-scema/updates/00.01.026_addLanguage.sql index 5a6bddff7..a05949588 100644 --- a/dmp-db-scema/updates/00.01.026_addLanguage.sql +++ b/dmp-db-scema/updates/00.01.026_addLanguage.sql @@ -4,21 +4,9 @@ BEGIN PERFORM * FROM "DBVersion" WHERE version = this_version; IF FOUND THEN RETURN; END IF; - CREATE TABLE public."Language" - ( - id uuid NOT NULL, - code character varying(20) COLLATE pg_catalog."default" NOT NULL, - payload text COLLATE pg_catalog."default", - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - is_active smallint NOT NULL, - ordinal integer NOT NULL, - CONSTRAINT "Language_pkey" PRIMARY KEY (id) - ) - WITH ( - OIDS = FALSE - ); + ALTER TABLE public."Language" + ADD COLUMN ordinal integer NOT NULL; - INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.026', '2023-11-29 12:00:00.000000+02', now(), 'Add table Language.'); + INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.026', '2023-11-29 12:00:00.000000+02', now(), 'ALter table Language.'); END$$; \ No newline at end of file