I have a folder called 'migrations' inside app, where all required db (structure and data) changes are placed. After source update and apache restart, application checks if any migration is needed (by checking version saved in database and available migration versions). If so, every required migration is executed, current version number is written to database. That's all :)
--

