19 lines
726 B
SQL
19 lines
726 B
SQL
DO $$DECLARE
|
|
this_version CONSTANT varchar := '00.01.048';
|
|
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)
|
|
);
|
|
|
|
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.');
|
|
|
|
END$$; |