PostgreSQL schema migration?

Daulet Nurgali picture Daulet Nurgali · Feb 8, 2018 · Viewed 7.7k times · Source

I've local PostgreSQL database with tables, constraints, relations etc.

How can I migrate it to a production server?

Answer

sindhu_sp picture sindhu_sp · Feb 8, 2018

Try using flyway. It does exactly this. Dump your schema into an sql file and migrate using flyway.