We have developed a deployment system that support automatic missing SQL query execution during project deployment on Production/Staging servers.
To make use of it a file
/modules/custom/install/project_upgrades.sql needs to be created. File format is pretty simple:
However there are some actions in deployment process that can't be easily achieved just by executing an SQL query.
I'm proposing to support a
/modules/custom/install/project_upgrades.php file as well. I guess we can create it similar to
upgrades.php file, where:
- there is PHP method for each revision that needs some PHP related actions (e.g.
- method has 1 argument:
modethat can be any of:
- before executing sql
- after executing sql
- after importing language pack