https://github.com/lefred/online-migration
MySQL schema versioning and migration management utility
https://github.com/lefred/online-migration
Last synced: over 1 year ago
JSON representation
MySQL schema versioning and migration management utility
- Host: GitHub
- URL: https://github.com/lefred/online-migration
- Owner: lefred
- Created: 2013-04-16T23:34:53.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-09-28T22:43:36.000Z (almost 12 years ago)
- Last Synced: 2025-03-27T09:52:01.435Z (over 1 year ago)
- Language: Python
- Size: 509 KB
- Stars: 27
- Watchers: 8
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: readme.rst
Awesome Lists containing this project
README
Note: I've reset the merge from Gaëtan Denaisse as it brakes some of my usage. I'll review it more carrefully and
merge later. I'll also make it compatible with last mysql-utilities
online-migration
================
This is a script to keep track of database schema. It helps to check and migrate to a new version of
the schema and rollback if necessary.
It uses pt-online-schema-change as backend (http://www.percona.com/doc/percona-toolkit/2.2/pt-online-schema-change.html)
and Oracle MySQL utilities (http://dev.mysql.com/doc/workbench/en/mysql-utilities.html).
Requirements:
-------------
* pt-online-schema-change
* mysql-utilities (1.3.3)
* mysql-connector-python
* mysql client
* perl-DBI (dependency of pt-online-schema-change)
* perl-DBD-MySQL (dependency of pt-online-schema-chane)
Puppet:
-------
A new type (**mysql_schema**) and its provider as been added to the project
Extra:
------
Currently rollback the addition of foreign keys doesn't work because foreign keys are not copied with
mysqldbcopy see http://bugs.mysql.com/bug.php?id=63783
A bug in pt-online-schema-change fails the example with the world database, see https://bugs.launchpad.net/percona-toolkit/+bug/1207186
Copyrights:
-----------
GPLv2 all rights reserved to Frédéric Descamps