Migration is created for the @default(dbgenerated(...))
value on DateTime
although already migrated
#24240
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/bug
A reported bug.
topic: endless migrations
topic: migrate
topic: postgresql
topic: prisma migrate dev
CLI: prisma migrate dev
Bug description
When new table is created with
@default(dbgenerated("NOW() + interval '1 day'")) @db.Timestamp(6)
column and the migration is applied, next run ofnpx prisma migrate dev
requests to create a new migration for the same column.How to reproduce
npx prisma migrate dev
without changing anything elseExpected behavior
No new migrations are created after the initial one
Prisma information
// Add your code using Prisma Client
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: