Resolving migration scripts issues for annotation service tables regarding queue messages

This commit is contained in:
Thomas Georgios Giannos 2024-02-21 17:53:28 +02:00
parent 446268719d
commit 5c1f6a096b
3 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
DO $$DECLARE
this_version CONSTANT varchar := '00.01.050';
this_version CONSTANT varchar := '00.01.048';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
@ -30,6 +30,6 @@ BEGIN
ON DELETE NO ACTION
);
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.050', '2024-02-13 12:00:00.000000+02', now(), 'Add tables ant_Tenant and ant_TenantConfiguration.');
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$$;

View File

@ -1,5 +1,5 @@
DO $$DECLARE
this_version CONSTANT varchar := '00.01.048';
this_version CONSTANT varchar := '00.01.049';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
@ -21,12 +21,12 @@ BEGIN
is_active smallint NOT NULL,
CONSTRAINT "ant_QueryInbox_pkey" PRIMARY KEY (id),
CONSTRAINT "ant_QueryInbox_tenant_fkey" FOREIGN KEY (tenant)
REFERENCES public."Tenant" (id) MATCH SIMPLE
REFERENCES public."ant_Tenant" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
NOT VALID
);
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.048', '2024-02-13 12:00:00.000000+02', now(), 'Add table ant_QueueInbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.049', '2024-02-13 12:00:00.000000+02', now(), 'Add table ant_QueueInbox.');
END$$;

View File

@ -1,5 +1,5 @@
DO $$DECLARE
this_version CONSTANT varchar := '00.01.049';
this_version CONSTANT varchar := '00.01.050';
BEGIN
PERFORM * FROM "DBVersion" WHERE version = this_version;
IF FOUND THEN RETURN; END IF;
@ -21,11 +21,11 @@ BEGIN
is_active smallint NOT NULL,
CONSTRAINT "ant_QueueOutbox_pkey" PRIMARY KEY (id),
CONSTRAINT "ant_QueueOutbox_tenant_fkey" FOREIGN KEY (tenant)
REFERENCES public."Tenant" (id) MATCH SIMPLE
REFERENCES public."ant_Tenant" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
);
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.049', '2024-02-13 12:00:00.000000+02', now(), 'Add table ant_QueueOutbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.050', '2024-02-13 12:00:00.000000+02', now(), 'Add table ant_QueueOutbox.');
END$$;