BUG-11707 Al realizar workspace-restore de un backup creado... SOLVED
- Not update the schema. - Add validation to restore.
This commit is contained in:
@@ -74,7 +74,7 @@ CLI::taskOpt("info", "Only shows information about a backup archive.", "i");
|
|||||||
CLI::taskOpt("multiple", "Restore from multiple compresed enumerated files.", "m");
|
CLI::taskOpt("multiple", "Restore from multiple compresed enumerated files.", "m");
|
||||||
CLI::taskOpt("workspace", "Select which workspace to restore if multiple workspaces are present in the archive.",
|
CLI::taskOpt("workspace", "Select which workspace to restore if multiple workspaces are present in the archive.",
|
||||||
"w:", "workspace=");
|
"w:", "workspace=");
|
||||||
CLI::taskOpt("lang", "Set the language for upgrade cacheView, by default en.", "l:","lang=");
|
CLI::taskOpt("lang", "You must specify language on which rebuild of the case cache list builder will be done; if you don't specify this, it will use 'en' by default", "l:","lang=");
|
||||||
CLI::taskRun(run_workspace_restore);
|
CLI::taskRun(run_workspace_restore);
|
||||||
|
|
||||||
CLI::taskName('cacheview-repair');
|
CLI::taskName('cacheview-repair');
|
||||||
@@ -92,7 +92,7 @@ CLI::taskDescription(<<<EOT
|
|||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace', true, true);
|
CLI::taskArg('workspace', true, true);
|
||||||
CLI::taskOpt("lang", "Set the language for upgrade cacheView, by default en.", "l:","lang=");
|
CLI::taskOpt("lang", "You must specify language on which rebuild of the case cache list builder will be done; if you don't specify this, it will use 'en' by default", "l:","lang=");
|
||||||
CLI::taskRun(run_cacheview_upgrade);
|
CLI::taskRun(run_cacheview_upgrade);
|
||||||
|
|
||||||
CLI::taskName('database-upgrade');
|
CLI::taskName('database-upgrade');
|
||||||
|
|||||||
@@ -67,35 +67,35 @@ class workspaceTools
|
|||||||
$this->upgradeDatabase();
|
$this->upgradeDatabase();
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating database carried out in $final seconds.\n");
|
CLI::logging("<*> Database Upgrade Process took $final seconds.\n");
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating translations...\n");
|
CLI::logging("> Updating translations...\n");
|
||||||
$this->upgradeTranslation($first);
|
$this->upgradeTranslation($first);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating translations carried out in $final seconds.\n");
|
CLI::logging("<*> Updating Translations Process took $final seconds.\n");
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating Content...\n");
|
CLI::logging("> Updating Content...\n");
|
||||||
$this->upgradeContent($workSpace);
|
$this->upgradeContent($workSpace);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating Content carried out in $final seconds.\n");
|
CLI::logging("<*> Updating Content Process took $final seconds.\n");
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating cache view...\n");
|
CLI::logging("> Updating cache view...\n");
|
||||||
$this->upgradeCacheView($buildCacheView, true, $lang);
|
$this->upgradeCacheView($buildCacheView, true, $lang);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating cache view carried out in $final seconds.\n");
|
CLI::logging("<*> Updating cache view Process took $final seconds.\n");
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating cases directories structure...\n");
|
CLI::logging("> Updating cases directories structure...\n");
|
||||||
$this->upgradeCasesDirectoryStructure($workSpace);
|
$this->upgradeCasesDirectoryStructure($workSpace);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating directories structure carried out in $final seconds.\n");
|
CLI::logging("<*> Database Upgrade Structure Process took $final seconds.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1252,21 +1252,22 @@ class workspaceTools
|
|||||||
$workspace->upgradeDatabase();
|
$workspace->upgradeDatabase();
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating database carried out in $final seconds.\n");
|
CLI::logging("<*> Database Upgrade Process took $final seconds.\n");
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating cases directories structure...\n");
|
CLI::logging("> Updating cases directories structure...\n");
|
||||||
$workspace->upgradeCasesDirectoryStructure($workspaceName);
|
$workspace->upgradeCasesDirectoryStructure($workspaceName);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating directories structure carried out in $final seconds.\n");
|
CLI::logging("<*> Database Upgrade Structure Process took $final seconds.\n");
|
||||||
}
|
}
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating cache view...\n");
|
CLI::logging("> Updating cache view...\n");
|
||||||
$workspace->upgradeCacheView(true, false, $lang);
|
$workspace->upgradeCacheView(true, false, $lang);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating cache view carried out in $final seconds.\n");
|
CLI::logging("<*> Updating cache view Process took $final seconds.\n");
|
||||||
|
|
||||||
|
|
||||||
mysql_close($link);
|
mysql_close($link);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user