Consider the following setting:
- A production DB
- A dev db, on which schema changes are made to enable new features
When the development of a new feature is complete, I have to manually update the prod db schema until pg_dump --schema-only on both DBs is identical. This process is error prone and tedious.
So, I am looking for a tool that can:
- Show a summary of the differences between two schemas (like
diff). Note that I am not looking for a mere textual diff of the schema, but a more elaborate tool that can draw conclusions like "TableXhas a new columnY". - Auto-generate the SQL code that would convert one schema to another (like
patch)
Is there a schema diff/patch tool that can help me convert prod schemas to the more advanced dev schemas?
