Domica
PPrisma
•Created by Domica on 12/11/2024 in #help-and-questions
Prisma migrate dev keeps wanting to drop my sequence
I created an empty migration file, added my sequence in. After that I ran migrate dev which will generate the sql necessary to insert my column
orderNumber Int? @unique @default(dbgenerated("nextval('order_number_seq')"))
It creates the sql for inserting that column
But after running migrate dev again, it keeps creating a new migration with this content
add_sequence.sql migration -
I'm unsure why this is happening2 replies