Skip to content

Dynamically creating table and data model #4833

Answered by nikolasburk
Muzzamil1 asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@Muzzamil1
Comment options

@vineyrawat
Comment options

@Muzzamil1
Comment options

@Muzzamil1
Comment options

@Malenconiaprincep
Comment options

Answer selected by Muzzamil1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants