summaryrefslogtreecommitdiff
path: root/db/migrations_backup/0014_clammy_power_man.sql
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-10 11:45:48 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-10 11:45:48 +0900
commitfed3dc0349be8faa5a94048e2ce2d96e432bf734 (patch)
tree1c81e9b2e98d9869225a2897fd2a0d2c9398a556 /db/migrations_backup/0014_clammy_power_man.sql
parent631b09172b48ec24c4f0131bc97017b87ddf0c47 (diff)
(김준회) chore: migrations_backup 경로 제거
Diffstat (limited to 'db/migrations_backup/0014_clammy_power_man.sql')
-rw-r--r--db/migrations_backup/0014_clammy_power_man.sql14
1 files changed, 0 insertions, 14 deletions
diff --git a/db/migrations_backup/0014_clammy_power_man.sql b/db/migrations_backup/0014_clammy_power_man.sql
deleted file mode 100644
index 3fd6a1e3..00000000
--- a/db/migrations_backup/0014_clammy_power_man.sql
+++ /dev/null
@@ -1,14 +0,0 @@
-CREATE TABLE "items" (
- "id" serial PRIMARY KEY NOT NULL,
- "item_code" varchar(100) PRIMARY KEY NOT NULL,
- "item_name" varchar(255) NOT NULL,
- "description" text,
- "created_at" timestamp DEFAULT now() NOT NULL,
- "updated_at" timestamp DEFAULT now() NOT NULL
-);
---> statement-breakpoint
-ALTER TABLE "vendor_possible_items" ALTER COLUMN "item_code" SET NOT NULL;--> statement-breakpoint
-ALTER TABLE "rfq_items" ADD CONSTRAINT "rfq_items_item_code_items_item_code_fk" FOREIGN KEY ("item_code") REFERENCES "public"."items"("item_code") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
-ALTER TABLE "vendor_possible_items" ADD CONSTRAINT "vendor_possible_items_item_code_items_item_code_fk" FOREIGN KEY ("item_code") REFERENCES "public"."items"("item_code") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
-ALTER TABLE "rfq_items" DROP COLUMN "item_name";--> statement-breakpoint
-ALTER TABLE "vendor_possible_items" DROP COLUMN "item_name"; \ No newline at end of file