2024-02-13 17:31:01 +01:00
|
|
|
DO $$DECLARE
|
2024-02-21 16:53:28 +01:00
|
|
|
this_version CONSTANT varchar := '00.01.048';
|
2024-02-13 17:31:01 +01:00
|
|
|
BEGIN
|
|
|
|
PERFORM * FROM "DBVersion" WHERE version = this_version;
|
|
|
|
IF FOUND THEN RETURN; END IF;
|
|
|
|
|
|
|
|
CREATE TABLE public."ant_Tenant"
|
|
|
|
(
|
|
|
|
id uuid NOT NULL,
|
|
|
|
code character varying(200) COLLATE pg_catalog."default" NOT NULL,
|
|
|
|
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 "ant_Tenant_pkey" PRIMARY KEY (id)
|
|
|
|
);
|
2024-04-26 17:25:09 +02:00
|
|
|
|
2024-02-21 16:53:28 +01:00
|
|
|
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.048', '2024-02-13 12:00:00.000000+02', now(), 'Add tables ant_Tenant and ant_TenantConfiguration.');
|
2024-02-13 17:31:01 +01:00
|
|
|
|
|
|
|
END$$;
|