Adam
04/01/2022, 8:14 PMv3.11.0
from v2.27.0
using Postgres and we just created our first migration file using npx prisma migrate dev --name test_migration_file --create-only
and we are noticing a ton of changes that seem to drop all foreign key constraints and re-add them. Is this typical? Is this a cause of the version upgrade?Julius de Bruijn
04/01/2022, 8:15 PMdb pull
to see if there's stuff like constraint names etc.Julius de Bruijn
04/01/2022, 8:16 PMAdam
04/01/2022, 8:20 PMdb pull
besides a reorganization of the schema.prisma
I have a feeling the new referential stuff https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-3/referential-actions casues the constraints to be changedJulius de Bruijn
04/01/2022, 8:29 PMAdam
04/01/2022, 8:30 PMcascade
is the default which is fine for everything for us