Dynamically creating table and data model #4833
-
Hi all! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @Muzzamil1, if I understand your question correctly, you're looking for a way to programmatically migrate the database schema. Ist that correct? If so, then this is currently not natively supported by Prisma Migrate unfortunately, we already have an open issue for this here. As a workaround, you can consider invoking the Also, this library might be helpful for you: https://github.com/amplication/prisma-schema-dsl Let me know if that helps or if you have any further questions, always happy to help! |
Beta Was this translation helpful? Give feedback.
-
@Muzzamil1 have you got the solutions for your case |
Beta Was this translation helpful? Give feedback.
Hey @Muzzamil1, if I understand your question correctly, you're looking for a way to programmatically migrate the database schema. Ist that correct?
If so, then this is currently not natively supported by Prisma Migrate unfortunately, we already have an open issue for this here. As a workaround, you can consider invoking the
prisma migrate
commands from Node.js.Also, this library might be helpful for you: https://github.com/amplication/prisma-schema-dsl
Let me know if that helps or if you have any further questions, always happy to help!