I have a web application that is installed for several customers' machinges. While updating the app I need to propagate the last version of tables' schema to production servers.
There are a lot of migration tools, but most of them require a lot of effort or are more complicated than what I need. I need a solution as simple as what described below to streamline the upgrading phase .
I need a tool that receive the tables' schema (generated by mysqldump --no-create-info
) of development and production machines and generates the alter table queries needed to run on the production servers.
+------------------------+
| +--------------+
|Development Machine | |
|create tables statements| +--------v-------+
+------------------------+ | | +----------------+
| Automation Tool+----->Alter Statements|
| | +----------------+
+---------^------+
+------------------------+ |
|Production Machine | |
|create table statements +---------------+
+------------------------+