Files
documenso/packages/prisma/migrations/20250822065959_asdfasdf/migration.sql
David Nguyen e1464ac2d3 fix: wip
2025-08-22 22:30:02 +10:00

12 lines
415 B
SQL

/*
Warnings:
- Added the required column `envelopeId` to the `Document` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Document" ADD COLUMN "envelopeId" TEXT NOT NULL;
-- AddForeignKey
ALTER TABLE "Document" ADD CONSTRAINT "Document_envelopeId_fkey" FOREIGN KEY ("envelopeId") REFERENCES "Envelope"("id") ON DELETE CASCADE ON UPDATE CASCADE;