BUG-11707 Al realizar workspace-restore de un backup creado... SOLVED

- Not update the schema.
- Add validation to restore.
This commit is contained in:
Marco Antonio Nina
2013-05-20 10:02:16 -04:00
parent 4375be498d
commit 5f8d834a39
2 changed files with 11 additions and 10 deletions

View File

@@ -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');

View File

@@ -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);
} }