argos/dmp-db-scema/updates/00.01.031_Add_ntf_User.sql

20 lines
741 B
MySQL
Raw Normal View History

DO $$DECLARE
2024-04-04 17:27:18 +02:00
this_version CONSTANT varchar := '00.01.031';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
CREATE TABLE IF NOT EXISTS public."ntf_User"
(
"id" uuid NOT NULL,
"name" character varying(250) COLLATE pg_catalog."default",
"additional_info" character varying COLLATE pg_catalog."default",
"created_at" timestamp without time zone NOT NULL DEFAULT now(),
"updated_at" timestamp without time zone NOT NULL DEFAULT now(),
"is_active" smallint NOT NULL DEFAULT 1,
CONSTRAINT "Ntf_User_pkey" PRIMARY KEY (id)
2024-02-15 17:36:46 +01:00
);
2024-04-04 17:27:18 +02:00
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.031', '2024-01-24 12:00:00.000000+02', now(), 'Add table ntf_User.');
END$$;