Omar Ghanim
06/13/2021, 9:42 PMprisma migrate deploy command doesn't actually migrate the data in the production unless we run the prisma migrate dev first and generated the local migrations folder; Is this behavior normal? If not, what some other ways we can migrate the data at deployment without migrating in development
the second problem , when we run command npx prisma migrate dev it gives the following errors (The database server at `<url>`:`5432` was reached but timed out. ) however we increase connection limit and pool , but when we run command npx prisma db push , schema changed and applied without any problem .Ryan
06/14/2021, 6:10 AMprisma migrate deploy needs migration files for it to work so you cannot run deploy without setting up migrations in development using migrate dev . This goes for any migration library where you need to create migrations in development and apply them in deployment.
As for the second point, where exactly is your database hosted? Make sure that the development database is in the same geographic location from where youβre working to minimise latency.janpio
prisma db push - but that is a very big hammer. In production you really do not want to use that but have migration files you checked, and then deploy these)Omar Ghanim
06/15/2021, 1:16 PM