summaryrefslogtreecommitdiff
path: root/db/migrations/0016_fat_komodo.sql
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-03-25 15:55:45 +0900
committerjoonhoekim <26rote@gmail.com>2025-03-25 15:55:45 +0900
commit1a2241c40e10193c5ff7008a7b7b36cc1d855d96 (patch)
tree8a5587f10ca55b162d7e3254cb088b323a34c41b /db/migrations/0016_fat_komodo.sql
initial commit
Diffstat (limited to 'db/migrations/0016_fat_komodo.sql')
-rw-r--r--db/migrations/0016_fat_komodo.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrations/0016_fat_komodo.sql b/db/migrations/0016_fat_komodo.sql
new file mode 100644
index 00000000..f9e1840c
--- /dev/null
+++ b/db/migrations/0016_fat_komodo.sql
@@ -0,0 +1,5 @@
+ALTER TABLE "users" DROP CONSTRAINT "users_company_id_companies_id_fk";
+--> statement-breakpoint
+ALTER TABLE "rfq_attachments" ADD COLUMN "comment_id" integer;--> statement-breakpoint
+ALTER TABLE "rfq_attachments" ADD CONSTRAINT "rfq_attachments_comment_id_rfq_comments_id_fk" FOREIGN KEY ("comment_id") REFERENCES "public"."rfq_comments"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
+ALTER TABLE "users" ADD CONSTRAINT "users_company_id_vendors_id_fk" FOREIGN KEY ("company_id") REFERENCES "public"."vendors"("id") ON DELETE set null ON UPDATE no action; \ No newline at end of file