fix: fix several different data parsing issues

This commit is contained in:
2026-04-18 14:47:06 +00:00
parent 5141ed20f9
commit f91d8debcb
16 changed files with 632 additions and 49 deletions
@@ -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;