Open casey-chow opened 3 years ago
We'll need to table this until there's more capacity.
Bug still exists.
I'm seeing this same behavior with a different @default(dbgenerated())
value. Also on Postgres on Prisma 2.23.0
. Every new migration I make, it tries to add an ALTER
line to set the column's default value.
Bug description
When running
prisma migrate dev
, the generated schema drops the default value for a complex default value, and its corresponding sequence.How to reproduce
prisma migrate dev
, modify to look like the SQL migration below.prisma migrate dev
.(Note that the default in Postgres is also the outputted value from Postgres when examining generated DDL.)
Expected behavior
The second invocation of
migrate dev
shouldn't generate another migration.Prisma information
Schema Used
SQL Migration
Environment & setup
Prisma Version