add sql script
This commit is contained in:
parent
baaddb6284
commit
388af4410d
|
@ -0,0 +1,24 @@
|
|||
DO $$DECLARE
|
||||
this_version CONSTANT varchar := '00.01.026';
|
||||
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
|
||||
);
|
||||
|
||||
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.026', '2023-11-29 12:00:00.000000+02', now(), 'Add table Language.');
|
||||
|
||||
END$$;
|
Loading…
Reference in New Issue