Files
documenso/packages/prisma/migrations/20231007021427_reuse_document_data/migration.sql
Ephraim Atta-Duncan 31a9127c9e feat: templates
2023-12-14 12:24:56 +11:00

15 lines
455 B
SQL

/*
Warnings:
- You are about to drop the `TemplateData` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE "Template" DROP CONSTRAINT "Template_templateDataId_fkey";
-- DropTable
DROP TABLE "TemplateData";
-- AddForeignKey
ALTER TABLE "Template" ADD CONSTRAINT "Template_templateDataId_fkey" FOREIGN KEY ("templateDataId") REFERENCES "DocumentData"("id") ON DELETE CASCADE ON UPDATE CASCADE;