Hi everyone :wave: I just want to ask, how can I d...
# orm-help
r
Hi everyone ๐Ÿ‘‹ I just want to ask, how can I drop all the migrations through CLI? I tried
prisma migrate reset
but that recreates all the migrations and I just want to be able to trash all the migrations
โœ… 1
n
Hi @Ricardo Ferreira ๐Ÿ‘‹
migrate reset
command deletes and recreates the database, or performs a โ€˜soft resetโ€™ by removing all data, tables, indexes, and other artifacts. You can optionally pass the
--skip-seed
flag to skip triggering of seed script if you have any. Do you want to delete the existing migration files that are already generated? Migrate Reset Reference
r
hm.. thanks a lot for the help! I tried to look up for the reset docs online but for whatever reason I couldn't find this page ๐Ÿ˜• I found others, just not this one specifically
but the idea is just to reset the db, I don't want to touch on the migration files. this is because we had an issue starting the container (docker) and was trying to reproduce the issue by resetting the db into the initial state
thank you once again @Nurul for pointing me to the right direction ๐Ÿ™‡
๐Ÿ™ 2
๐Ÿ’š 1