Can get prisma dev to align with production
- The migration
0_init
was modified after it was applied.
- Drift detected: Your database schema is not in sync with your migration history.
The following is a summary of the differences between the expected database schema given your migrations files, and the actual schema of the database.
It should be understood as the set of changes to get from the expected schema to the actual schema.
[] Changed the Receipt
table
[] Altered column totalAmountVatInclusive
(type changed)
[] Altered column totalAmountVatExclusive
(type changed)
[] Altered column vatAmount
(type changed)
[] Changed the ReceiptItem
table
[] Altered column price
(type changed)
[] Altered column quantity
(type changed)
[] Altered column taxRate
(type changed)
√ We need to reset the "public" schema at "aws-0-ap-southeast-2.pooler.supabase.com:5432"
Do you want to continue? All data will be lost. ... no
I've tried everything online, how do i get my dev to align with production.2 Replies
Salutations, traveler! I'm the Prisma AI Help Bot. You've reached a fork in the road: one path leads to the wisdom of the human sages (ETA: sometime today), and the other to my instantaneous insights. Which way shall we go?
Hi @gnarley_farley.
Can you look at this section of the documentation on how to fix the issue you're having?
Patching & hotfixing | Prisma Documentation
How to reconcile the migration history after applying a hotfix or patch to a production environment.