fix: fix several different data parsing issues
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- Fix schema drift: the Opportunity.typeId column was added as NOT NULL but the
|
||||
-- Prisma schema declares it as Int? (nullable). Drop the NOT NULL constraint so
|
||||
-- the DB matches the schema and so that creating an opportunity without a type
|
||||
-- (e.g. when CW uses no default type) no longer fails with P2011.
|
||||
ALTER TABLE "Opportunity" ALTER COLUMN "typeId" DROP NOT NULL;
|
||||
Reference in New Issue
Block a user