From 5c1f6a096ba24119d05de8a4b25375902d8e1321 Mon Sep 17 00:00:00 2001 From: Thomas Georgios Giannos Date: Wed, 21 Feb 2024 17:53:28 +0200 Subject: [PATCH] Resolving migration scripts issues for annotation service tables regarding queue messages --- ...0.01.048_Add_ant_Tenant_and_ant_TenantConfiguration.sql} | 4 ++-- ..._ant_QueueInbox.sql => 00.01.049_Add_ant_QueueInbox.sql} | 6 +++--- ...nt_QueueOutbox.sql => 00.01.050_Add_ant_QueueOutbox.sql} | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename dmp-db-scema/updates/{00.01.050_Add_ant_Tenant_and_ant_TenantConfiguration.sql => 00.01.048_Add_ant_Tenant_and_ant_TenantConfiguration.sql} (91%) rename dmp-db-scema/updates/{00.01.048_Add_ant_QueueInbox.sql => 00.01.049_Add_ant_QueueInbox.sql} (86%) rename dmp-db-scema/updates/{00.01.049_Add_ant_QueueOutbox.sql => 00.01.050_Add_ant_QueueOutbox.sql} (85%) diff --git a/dmp-db-scema/updates/00.01.050_Add_ant_Tenant_and_ant_TenantConfiguration.sql b/dmp-db-scema/updates/00.01.048_Add_ant_Tenant_and_ant_TenantConfiguration.sql similarity index 91% rename from dmp-db-scema/updates/00.01.050_Add_ant_Tenant_and_ant_TenantConfiguration.sql rename to dmp-db-scema/updates/00.01.048_Add_ant_Tenant_and_ant_TenantConfiguration.sql index 8cb9d829a..6a73aa238 100644 --- a/dmp-db-scema/updates/00.01.050_Add_ant_Tenant_and_ant_TenantConfiguration.sql +++ b/dmp-db-scema/updates/00.01.048_Add_ant_Tenant_and_ant_TenantConfiguration.sql @@ -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$$; \ No newline at end of file diff --git a/dmp-db-scema/updates/00.01.048_Add_ant_QueueInbox.sql b/dmp-db-scema/updates/00.01.049_Add_ant_QueueInbox.sql similarity index 86% rename from dmp-db-scema/updates/00.01.048_Add_ant_QueueInbox.sql rename to dmp-db-scema/updates/00.01.049_Add_ant_QueueInbox.sql index 98cfd7bfb..48f593f0b 100644 --- a/dmp-db-scema/updates/00.01.048_Add_ant_QueueInbox.sql +++ b/dmp-db-scema/updates/00.01.049_Add_ant_QueueInbox.sql @@ -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$$; \ No newline at end of file diff --git a/dmp-db-scema/updates/00.01.049_Add_ant_QueueOutbox.sql b/dmp-db-scema/updates/00.01.050_Add_ant_QueueOutbox.sql similarity index 85% rename from dmp-db-scema/updates/00.01.049_Add_ant_QueueOutbox.sql rename to dmp-db-scema/updates/00.01.050_Add_ant_QueueOutbox.sql index 6ed6b4d7f..a90e251ae 100644 --- a/dmp-db-scema/updates/00.01.049_Add_ant_QueueOutbox.sql +++ b/dmp-db-scema/updates/00.01.050_Add_ant_QueueOutbox.sql @@ -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$$; \ No newline at end of file