summaryrefslogtreecommitdiff
path: root/db/migrations/0101_past_killraven.sql
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 06:33:14 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 06:33:14 +0000
commit6f4110be95c83b18e223c8d662d68c675364c74e (patch)
tree4a9a35f185bdbc9d7da2faa905638c25b86caf55 /db/migrations/0101_past_killraven.sql
parente0dfb55c5457aec489fc084c4567e791b4c65eb1 (diff)
2025.3.26.1533
Diffstat (limited to 'db/migrations/0101_past_killraven.sql')
-rw-r--r--db/migrations/0101_past_killraven.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrations/0101_past_killraven.sql b/db/migrations/0101_past_killraven.sql
new file mode 100644
index 00000000..afb8370c
--- /dev/null
+++ b/db/migrations/0101_past_killraven.sql
@@ -0,0 +1,5 @@
+ALTER TABLE "vendor_data_report_temps" DROP CONSTRAINT "vendor_data_report_temps_formId_forms_id_fk";
+--> statement-breakpoint
+ALTER TABLE "vendor_data_report_temps" ADD COLUMN "form_id" integer NOT NULL;--> statement-breakpoint
+ALTER TABLE "vendor_data_report_temps" ADD CONSTRAINT "vendor_data_report_temps_form_id_forms_id_fk" FOREIGN KEY ("form_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
+ALTER TABLE "vendor_data_report_temps" DROP COLUMN "formId"; \ No newline at end of file