Initialized Project, just seeking clarification on next steps
I've just spun up a t3 app. It defaults to sqlite but I want to use postgres.
So, I've spun up a postgres docker container and changed the .env database URL. Other than uncommenting the annotations in the prisma schema, is there anything else I need to do to migrate to the new DB properly so I can start building out my data model?
2 Replies
migrate/push, should be good to go
just try it
hmmm ok so I don't know docker well enough to understand what I broke lol.
I used the original connection string that it provides to connect via post 55000
But with the docker-compose.yaml it recommended to me it can't connect when I try to migrate schema
lol fixed it. needed to use
localhost:5432
not postgres:5432
in the .env whoops