2024-03-07 12:34:56 +01:00
|
|
|
DO $$DECLARE
|
|
|
|
this_version CONSTANT varchar := '00.01.058';
|
|
|
|
BEGIN
|
|
|
|
PERFORM * FROM "DBVersion" WHERE version = this_version;
|
|
|
|
IF FOUND THEN RETURN; END IF;
|
|
|
|
|
2024-06-03 12:57:44 +02:00
|
|
|
-- CREATE TABLE IF NOT EXISTS public."ant_UserContactInfo"
|
|
|
|
-- (
|
|
|
|
-- "id" uuid NOT NULL,
|
|
|
|
-- "user" uuid NOT NULL,
|
|
|
|
-- "ordinal" integer NOT NULL DEFAULT 0,
|
|
|
|
-- "type" smallint NOT NULL,
|
|
|
|
-- "value" character varying(512) COLLATE pg_catalog."default" NOT NULL,
|
|
|
|
-- "created_at" timestamp without time zone NOT NULL,
|
|
|
|
-- "updated_at" timestamp without time zone NOT NULL,
|
|
|
|
-- "is_active" smallint NOT NULL DEFAULT 1,
|
|
|
|
-- CONSTRAINT "ant_UserContactInfo_pkey" PRIMARY KEY (id),
|
|
|
|
-- CONSTRAINT "ant_UserContactInfo_user_fkey" FOREIGN KEY ("user")
|
|
|
|
-- REFERENCES public."ant_User" (id) MATCH SIMPLE
|
|
|
|
-- ON UPDATE NO ACTION
|
|
|
|
-- ON DELETE NO ACTION
|
|
|
|
-- );
|
2024-03-07 12:34:56 +01:00
|
|
|
|
|
|
|
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.058', '2024-02-28 12:00:00.000000+02', now(), 'Add table ant_UserContactInfo.');
|
|
|
|
|
|
|
|
END$$;
|