BigInt with a default value cause duplicates in all migrations #14063
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: broken migrations
topic: default
Milestone
Bug description
Using this model
When I run the following command:
npx prisma migrate dev --name init
This generates the following migration:
So far everything is going as expected.
But when I run the migration again with the command:
npx prisma migrate dev
Generate this migration:
Even though I didn't make any changes to the schema.prisma file.
And this is repeated for all future migrations.
How to reproduce
Init prisma with postgres
Create a model with BigInt fields and add default values
Create a migration
Run migrations
Expected behavior
Migration should only be created once
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: