There is also a ZF-specific migration tool developed by Rob Allen (@akrabat):
Akrabat_Db_Schema_Manager: Zend Framework database migrations
In principle, it is similar to the dbdeploy
tool in Phing
. In Rob's Schema Manager
, each delta file contains a class with methods up()
and down()
that perform, respectively, the upgrade and the downgrade of the db schema.
It comes with a command-line tool built on Zend_Tool
that can perform specific migrations, report the current schema version, etc.
Update (as suggested by @markus-tharkun)
I have created a db migration tool, based on on Rob's original work, that uses vanilla PDO
rather than Zend_Db
. The tool is called "South For the Winter" and the owner (Diamond Web Services / StartupDevs) has released the code on Github: https://github.com/startupdevs/sftw