Commit d3d48a3e authored by anarcat's avatar anarcat

try to fix upgrade path from <=0.4-alpha8 by fixing the weight on the hosting...

try to fix upgrade path from <=0.4-alpha8 by fixing the weight on the hosting module before running the upgrade

we need to do this here because it's too late when deploy calls updatedb, and we don't want to add profile-specific stuff to provision-deploy
parent 8aef8147
......@@ -146,6 +146,8 @@ function drush_provision_pre_hostmaster_migrate($site, $platform) {
// we can't rely on the park command to exist in pre-0.4 alpha 2 releases
provision_backend_invoke(drush_get_option('site_name'), 'hostmaster-pause');
// we can't rely on update.php to run that because it will run too late. this can be removed in 0.5 and above
provision_backend_invoke(drush_get_option('site_name'), 'sqlq', array("UPDATE {system} SET weight = 0 WHERE type='module' AND name='hosting';"));
}
function drush_provision_hostmaster_migrate($site, $platform) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment