Hello all, Won't prisma introspect work on databas...
# orm-help
j
Hello all, Won't prisma introspect work on database with no tables?. Does that mean everytime I should create a dummy table on new database with no data?
n
Hey @Jayanth 👋 Introspection indeed reads a database schema and translates it into a Prisma schema, that's the entire point of this functionality so running introspection without any tables doesn't really make sense 🙂
Can I ask what you're trying to achieve? Maybe you have some misconceptions about the Prisma workflows? I think this page in the docs might also be helpful: https://www.prisma.io/docs/understand-prisma/introduction
j
@nikolasburk I am new to prisma please bare with me. In prisma 1 all I have to do is change datamodel and then run prisma generate. Here I am not sure how to achieve that.
👍 1
n
Maybe you're looking for Prisma Migrate which creates your database tables that correspond to your Prisma models? To get started, I'd rcommend that you check out this guide: https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch-prisma-migrate-typescript-postgres 🙂
👍 1
j
Thank you. I will look into the guide. 😁
🙌 2