From 62643ab6ce9df886c4016ba16123d930e622e8f6 Mon Sep 17 00:00:00 2001 From: vanilia Date: Tue, 11 Nov 2025 17:04:52 +0700 Subject: [PATCH] delete --- .../migrations/20251111040358.sql | 17 ----------------- .../migrations/20251111085815.sql | 2 -- 2 files changed, 19 deletions(-) delete mode 100644 cmd/main-migration/migrations/20251111040358.sql delete mode 100644 cmd/main-migration/migrations/20251111085815.sql diff --git a/cmd/main-migration/migrations/20251111040358.sql b/cmd/main-migration/migrations/20251111040358.sql deleted file mode 100644 index 8de43539..00000000 --- a/cmd/main-migration/migrations/20251111040358.sql +++ /dev/null @@ -1,17 +0,0 @@ --- Create "FileAttachment" table -CREATE TABLE "public"."FileAttachment" ( - "Id" bigserial NOT NULL, - "CreatedAt" timestamptz NULL, - "UpdatedAt" timestamptz NULL, - "DeletedAt" timestamptz NULL, - "EntityType_Code" text NULL, - "Ref_Id" bigint NULL, - "Type_Code" text NULL, - "Name" text NULL, - "FilePath" text NULL, - "FileName" text NULL, - "Upload_Employee_Id" bigint NULL, - PRIMARY KEY ("Id"), - CONSTRAINT "fk_Encounter_FileAttachments" FOREIGN KEY ("Ref_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION, - CONSTRAINT "fk_FileAttachment_Upload_Employee" FOREIGN KEY ("Upload_Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION -); diff --git a/cmd/main-migration/migrations/20251111085815.sql b/cmd/main-migration/migrations/20251111085815.sql deleted file mode 100644 index 945c7329..00000000 --- a/cmd/main-migration/migrations/20251111085815.sql +++ /dev/null @@ -1,2 +0,0 @@ --- Modify "FileAttachment" table -ALTER TABLE "public"."FileAttachment" DROP CONSTRAINT "fk_Encounter_FileAttachments";