Hi all, im using docker and have successfully set ...
# orm-help
r
Hi all, im using docker and have successfully set up a connection to a dockerized postgresql within my dockerized prisma node app. However, I'm getting error " The table
public.users
does not exist in the current database". I have the prisma schema files that are ready to update, but what command do I actually use to update the db schema? I know I need to use prisma CLI I think
1
m
you need to run :
package.json :
Copy code
prisma:push: npx prisma db push
with db push
Copy code
sudo docker exec -it <docker_service_name> npm run prisma:push
you can use prisma migration if you do want to loss data you can add this too : https://www.prisma.io/docs/concepts/components/prisma-migrate/shadow-database
n
Hi Rob 👋 If you are prototyping then you can use the db push command, this won't generate migration files. But if you want to generate migrations then you can use migrate dev and migrate deploy commands