I'm getting ready to host my DB for the first time...
# orm-help
m
I'm getting ready to host my DB for the first time - just been running it locally while I create my application. I'm creating a fresh db instance on Cloud SQL. When I was going through the first Prisma tutorial, I created a DB migration file - but I've been using
prisma db push
to update my db. If I'm understanding correctly, I haven't used my migration file at all. Since I have a fresh DB, is there anything wrong with deleting my initial migration file since I've made quite a few changes to the Prisma schema that aren't in the initial migration, and since the DB is new?
✅ 1
a
I can help you with this tho, deleting migrations is a bad habit generally but not in prisma. It does not affect your work unless you need to revert changes with existing data sets
For my case in development environment where I don't have any real data migrations aren't that usefull and delteting them isn't causing any problems
m
Once I actually stand the DB up, I'll keep better track of the migrations.
👍 1
Yeah - I'm in the same spot. Just going to stand the DB up now. Well, once my CEO puts billing on the project, anyway. 🙂
a
Yeah
n
Hey Michael 👋 In your case, it seems deleting initial migrations shouldn’t cause an issue. Once you reach a relatively stable state for your database schema then you can initialize your migration history again and can then keep track of your migrations. Just for reference, this guide should be useful for Schema prototyping.