Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zend database migration scripts

I would like to know how do you guys work in Zend Framework environment especially how to keep the database table up to date with others team (database change management) . I have small team who works at their home and we need to have latest database table everytime. We works at home so sometimes we work after finishing our main job at office.

Any idea ?

ps: just like Rails migration

like image 859
nightingale2k1 Avatar asked May 29 '26 13:05

nightingale2k1


1 Answers

We're using the db deploy feature of phing to keep track on database changes over time and to update the database between our developers. We're also using it to deploy new versions of our application, which usually include database updates.

Basically each time someone need to update the database scheme, he adds a database migration script. Each developer can then run phing to execute these db migration scripts automatically.

For more details, see a good guide on the subject here: http://www.davedevelopment.co.uk/2008/04/14/how-to-simple-database-migrations-with-phing-and-dbdeploy/

like image 134
aporat Avatar answered Jun 02 '26 20:06

aporat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!