is there any way to update existing migration fold...
# orm-help
y
is there any way to update existing migration folder name such as typo? ( ex. 20220101123_add_name_colm -> 20220101123_add_name_column )
a
have you already pushed to prod? are you OK with deleting data?
y
if that's not too much trouble, could you follow up with those 2 cases? 1. yes, i pushed to prod and can not delete data (if there's an option to change, otherwise i guess we will have to live with it) 2. no, i have not pushed it to prod.
a
if you've pushed to prod you theoretically could change the row in the migrations table that Prisma creates and the folder name, but it's a lot to keep in sync and I'd potentially push you to just live with it
If you haven't already pushed to prod, you can change the folder name in your editor, and run prisma migrate. Prisma should notice that things are out of sync, prompt you to delete all your data and try again
y
i see. thank you!