From b3db6f10850eb2faf741b3d4ef4dc7c50bc74595 Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Wed, 3 Apr 2024 11:36:31 +0300 Subject: [PATCH] remove tenant from UserContactInfo UserCredential --- .../00.01.034_Add_ntf_User_Credential.sql | 6 ------ .../00.01.043_addTenant_Id_to_Tables.sql | 18 ------------------ .../00.01.052_Add_ant_User_Credential.sql | 6 ------ 3 files changed, 30 deletions(-) diff --git a/dmp-db-scema/updates/00.01.034_Add_ntf_User_Credential.sql b/dmp-db-scema/updates/00.01.034_Add_ntf_User_Credential.sql index 38e40c78a..9dc8332a2 100644 --- a/dmp-db-scema/updates/00.01.034_Add_ntf_User_Credential.sql +++ b/dmp-db-scema/updates/00.01.034_Add_ntf_User_Credential.sql @@ -12,14 +12,8 @@ CREATE TABLE IF NOT EXISTS public."ntf_UserCredential" "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, "data" character varying COLLATE pg_catalog."default", CONSTRAINT "ntf_UserCredential_pkey" PRIMARY KEY (id), - CONSTRAINT "ntf_UserCredential_tenant_fkey" FOREIGN KEY ("tenant") - REFERENCES public."ntf_Tenant" (id) MATCH SIMPLE - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID, CONSTRAINT "ntf_UserCredential_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.043_addTenant_Id_to_Tables.sql b/dmp-db-scema/updates/00.01.043_addTenant_Id_to_Tables.sql index b02decacd..9dbf92285 100644 --- a/dmp-db-scema/updates/00.01.043_addTenant_Id_to_Tables.sql +++ b/dmp-db-scema/updates/00.01.043_addTenant_Id_to_Tables.sql @@ -157,24 +157,6 @@ BEGIN ON DELETE NO ACTION NOT VALID; - ALTER TABLE public."UserContactInfo" - ADD COLUMN tenant uuid; - ALTER TABLE public."UserContactInfo" - ADD CONSTRAINT "UserContactInfo_tenant_fkey" FOREIGN KEY (tenant) - REFERENCES public."Tenant" (id) - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID; - - ALTER TABLE public."UserCredential" - ADD COLUMN tenant uuid; - ALTER TABLE public."UserCredential" - ADD CONSTRAINT "UserCredential_tenant_fkey" FOREIGN KEY (tenant) - REFERENCES public."Tenant" (id) - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID; - ALTER TABLE public."UserDescriptionTemplate" ADD COLUMN tenant uuid; ALTER TABLE public."UserDescriptionTemplate" diff --git a/dmp-db-scema/updates/00.01.052_Add_ant_User_Credential.sql b/dmp-db-scema/updates/00.01.052_Add_ant_User_Credential.sql index 22e574867..f2c9dec8f 100644 --- a/dmp-db-scema/updates/00.01.052_Add_ant_User_Credential.sql +++ b/dmp-db-scema/updates/00.01.052_Add_ant_User_Credential.sql @@ -12,14 +12,8 @@ CREATE TABLE IF NOT EXISTS public."ant_UserCredential" "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, "data" character varying COLLATE pg_catalog."default", CONSTRAINT "ant_UserCredential_pkey" PRIMARY KEY (id), - CONSTRAINT "ant_UserCredential_tenant_fkey" FOREIGN KEY ("tenant") - REFERENCES public."ant_Tenant" (id) MATCH SIMPLE - ON UPDATE NO ACTION - ON DELETE NO ACTION - NOT VALID, CONSTRAINT "ant_UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User" (id) MATCH SIMPLE ON UPDATE NO ACTION