argos/dmp-db-scema/updates/00.01.024_addLanguage.sql

23 lines
737 B
MySQL
Raw Permalink Normal View History

2023-11-27 13:51:44 +01:00
DO $$DECLARE
this_version CONSTANT varchar := '00.01.024';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
CREATE TABLE public."Language"
(
id uuid NOT NULL,
2023-11-27 13:58:29 +01:00
code character varying(20) NOT NULL,
2023-11-28 18:10:04 +01:00
payload text,
2023-11-27 13:51:44 +01:00
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
CONSTRAINT "Language_pkey" PRIMARY KEY (id)
)
WITH (
OIDS = FALSE
);
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.024', '2023-11-27 12:00:00.000000+02', now(), 'Add table Language.');
END$$;