mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
fix: update migration to drop invalid fields
This commit is contained in:
@ -4,5 +4,8 @@
|
|||||||
- Made the column `recipientId` on table `Field` required. This step will fail if there are existing NULL values in that column.
|
- Made the column `recipientId` on table `Field` required. This step will fail if there are existing NULL values in that column.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
-- Drop all Fields where the recipientId is null
|
||||||
|
DELETE FROM "Field" WHERE "recipientId" IS NULL;
|
||||||
|
|
||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE "Field" ALTER COLUMN "recipientId" SET NOT NULL;
|
ALTER TABLE "Field" ALTER COLUMN "recipientId" SET NOT NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user