From 906cee76218e6bf26810898d55b36d5c75d4517c Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Wed, 10 Apr 2024 16:48:12 +0300 Subject: [PATCH] db script changes --- .../updates/00.01.033_Add_ntf_User_ContactInfo.sql | 6 ------ .../updates/00.01.058_Add_ant_UserContactInfo_table.sql | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/dmp-db-scema/updates/00.01.033_Add_ntf_User_ContactInfo.sql b/dmp-db-scema/updates/00.01.033_Add_ntf_User_ContactInfo.sql index 7fe00f10d..7b3ffd394 100644 --- a/dmp-db-scema/updates/00.01.033_Add_ntf_User_ContactInfo.sql +++ b/dmp-db-scema/updates/00.01.033_Add_ntf_User_ContactInfo.sql @@ -14,13 +14,7 @@ CREATE TABLE IF NOT EXISTS public."ntf_UserContactInfo" "created_at" timestamp without time zone NOT NULL, "updated_at" timestamp without time zone NOT NULL, "is_active" smallint NOT NULL DEFAULT 1, - "tenant" uuid, CONSTRAINT "ntf_UserContactInfo_pkey" PRIMARY KEY (id), - CONSTRAINT "ntf_UserContactInfo_tenant_fkey" FOREIGN KEY ("tenant") - REFERENCES public."ntf_Tenant" (id) MATCH SIMPLE - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID, CONSTRAINT "ntf_UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User" (id) MATCH SIMPLE ON UPDATE NO ACTION diff --git a/dmp-db-scema/updates/00.01.058_Add_ant_UserContactInfo_table.sql b/dmp-db-scema/updates/00.01.058_Add_ant_UserContactInfo_table.sql index 9faa4404d..ec304589a 100644 --- a/dmp-db-scema/updates/00.01.058_Add_ant_UserContactInfo_table.sql +++ b/dmp-db-scema/updates/00.01.058_Add_ant_UserContactInfo_table.sql @@ -13,14 +13,8 @@ CREATE TABLE IF NOT EXISTS public."ant_UserContactInfo" "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, - "tenant" uuid, + "is_active" smallint NOT NULL DEFAULT 1 CONSTRAINT "ant_UserContactInfo_pkey" PRIMARY KEY (id), - CONSTRAINT "ant_UserContactInfo_tenant_fkey" FOREIGN KEY ("tenant") - REFERENCES public."ant_Tenant" (id) MATCH SIMPLE - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID, CONSTRAINT "ant_UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User" (id) MATCH SIMPLE ON UPDATE NO ACTION