sam.oriental
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
do you play poker?
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
https://www.prisma.io/docs/orm/prisma-migrate/workflows/generating-down-migrations
this post should be able to help you rebuild that missing sql file
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
or if you dont gaf about the data in the db just hard reset
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
--appleid is if you recreated the sql file
to roll back you use --rolled-back (you have to manually reconcile the db to match the state of db at add_event_model)
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
:joeshrug:
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
or you can just manually recreate the migration.sql
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
prisma migrate resolve --applied "[migration name]"
14 replies
PPrisma
•Created by claire_r on 11/8/2024 in #help-and-questions
Migration File Accidentally Deleted
you can rollback to a prior migration then manually apply a older migration
14 replies