Hi folks! I have a question about.... prisma1 (sor...
# orm-help
m
Hi folks! I have a question about.... prisma1 (sorry, I know but I can't update that project now and it's a simple question). I made a change in my database and then I executed prisma1 instrospect. Do I need to execute prisma1 deploy to see the changes? Because my graphql API doesn't reflect the changes (new column on a table)
1
l
Prisma 1 needs to control the database. Revert the manual change, make the change in your Prisma datamodel file, and then prisma1 deploy
m
Hi lawjolla, thanks for your reply. That's not what the documentation says, it indicates that migrations can be done in both ways. The solution to my answer is yes, after introspect if datamodal changed a deploy is needed but it should be done with --no-migrate flag. or that's what I found that work for me.
n
You might want to ask this question in #prisma1 channel, I think some of the prisma1 users who ran into this might able to provide you with some alternatives.