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/0066_powerful_shard.sql | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 db/migrations/0066_powerful_shard.sql

(limited to 'db/migrations/0066_powerful_shard.sql')

diff --git a/db/migrations/0066_powerful_shard.sql b/db/migrations/0066_powerful_shard.sql
new file mode 100644
index 00000000..cbd39199
--- /dev/null
+++ b/db/migrations/0066_powerful_shard.sql
@@ -0,0 +1,4 @@
+ALTER TABLE "vendor_pq_review_logs" RENAME COLUMN "vendor_id" TO "vendor_pq_criteria_answer_id";--> statement-breakpoint
+ALTER TABLE "vendor_pq_review_logs" DROP CONSTRAINT "vendor_pq_review_logs_vendor_id_vendors_id_fk";
+--> statement-breakpoint
+ALTER TABLE "vendor_pq_review_logs" ADD CONSTRAINT "vendor_pq_review_logs_vendor_pq_criteria_answer_id_vendor_pq_criteria_answers_id_fk" FOREIGN KEY ("vendor_pq_criteria_answer_id") REFERENCES "public"."vendor_pq_criteria_answers"("id") ON DELETE cascade ON UPDATE no action;
\ No newline at end of file
-- 
cgit v1.2.3

