Added support to upgrade plugins database.
This commit is contained in:
@@ -10,6 +10,8 @@ pake_task('cacheview-upgrade');
|
||||
pake_task('database-upgrade');
|
||||
pake_task('database-check');
|
||||
|
||||
pake_task('plugins-database-upgrade');
|
||||
|
||||
pake_task('database-export');
|
||||
pake_task('database-import');
|
||||
|
||||
@@ -62,6 +64,18 @@ function run_cacheview_upgrade($command, $args) {
|
||||
}
|
||||
}
|
||||
|
||||
function run_plugins_database_upgrade($command, $args) {
|
||||
$workspaces = get_workspaces_from_args($args);
|
||||
foreach ($workspaces as $workspace) {
|
||||
try {
|
||||
logging("Upgrading plugins database for " . info($workspace->name) . "\n");
|
||||
$workspace->upgradePluginsDatabase();
|
||||
} catch (Exception $e) {
|
||||
logging("Errors upgrading plugins database: " . error($e->getMessage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function run_database_export($command, $args) {
|
||||
G::LoadSystem('dbMaintenance');
|
||||
if (count($args) < 2)
|
||||
|
||||
Reference in New Issue
Block a user