summaryrefslogtreecommitdiff
path: root/db/migrations/0098_cooing_reptil.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrations/0098_cooing_reptil.sql')
-rw-r--r--db/migrations/0098_cooing_reptil.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrations/0098_cooing_reptil.sql b/db/migrations/0098_cooing_reptil.sql
new file mode 100644
index 00000000..74022356
--- /dev/null
+++ b/db/migrations/0098_cooing_reptil.sql
@@ -0,0 +1,5 @@
+ALTER TABLE "vendor_data_report_temps" DROP CONSTRAINT "vendor_data_report_temps_form_code_forms_form_code_fk";
+--> statement-breakpoint
+ALTER TABLE "vendor_data_report_temps" ADD COLUMN "formId" integer NOT NULL;--> statement-breakpoint
+ALTER TABLE "vendor_data_report_temps" ADD CONSTRAINT "vendor_data_report_temps_formId_forms_id_fk" FOREIGN KEY ("formId") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
+ALTER TABLE "vendor_data_report_temps" DROP COLUMN "form_code"; \ No newline at end of file