Hi...looking for some guidance here. Based on <htt...
# orm-help
a
Hi...looking for some guidance here. Based on https://www.prisma.io/docs/guides/general-guides/database-workflows/sql-views-postgres#5-manually-add-the-draft-view-to-the-prisma-schema I added my view as a model in the Prisma schema. In the future if I add another table in my schema, I want to continue using
migrate
to be able to create the table. Is it possible to skip creation of certain models through
migrate
because then
migrate
will try to create a table with the name of the view that I created.
1
r
@ali 👋 In this case, you would need to comment out the view whenever you need to use migrate and un-comment it after the migrations are done.
t
There is an issue on GitHub about documenting this — migrate is working as expected for now, we will add specific support for views in the future, but it's not ther eyet.
plus one +1 2