From 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 25 Mar 2025 15:55:45 +0900
Subject: initial commit

---
 db/migrations/0012_giant_sunfire.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 db/migrations/0012_giant_sunfire.sql

(limited to 'db/migrations/0012_giant_sunfire.sql')

diff --git a/db/migrations/0012_giant_sunfire.sql b/db/migrations/0012_giant_sunfire.sql
new file mode 100644
index 00000000..97077702
--- /dev/null
+++ b/db/migrations/0012_giant_sunfire.sql
@@ -0,0 +1,6 @@
+ALTER TABLE "rfq_items" DROP CONSTRAINT "rfq_items_rfq_id_rfqs_id_fk";
+--> statement-breakpoint
+ALTER TABLE "rfq_vendors" DROP CONSTRAINT "rfq_vendors_rfq_id_rfqs_id_fk";
+--> statement-breakpoint
+ALTER TABLE "rfq_items" ADD CONSTRAINT "rfq_items_rfq_id_rfqs_id_fk" FOREIGN KEY ("rfq_id") REFERENCES "public"."rfqs"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
+ALTER TABLE "rfq_vendors" ADD CONSTRAINT "rfq_vendors_rfq_id_rfqs_id_fk" FOREIGN KEY ("rfq_id") REFERENCES "public"."rfqs"("id") ON DELETE cascade ON UPDATE no action;
\ No newline at end of file
-- 
cgit v1.2.3

