This commit is contained in:
Paula Quispe
2018-08-07 14:03:50 -04:00
parent 4f619588e8
commit f1c5444c64

View File

@@ -1828,9 +1828,11 @@ class WorkspaceTools
* @param string $filename the backup filename * @param string $filename the backup filename
* @param string $srcWorkspace name of the source workspace * @param string $srcWorkspace name of the source workspace
* @param string $dstWorkspace name of the destination workspace * @param string $dstWorkspace name of the destination workspace
* @param string $overwrite if you need overwrite the database * @param boolean $overwrite if you need overwrite the database
* @param string $lang for define the language * @param string $lang for define the language
* @param string $port of database if is empty take 3306 * @param string $port of database if is empty take 3306
*
* @throws Exception
*/ */
public static function restore($filename, $srcWorkspace, $dstWorkspace = null, $overwrite = true, $lang = 'en', $port = '', $optionMigrateHistoryData = []) public static function restore($filename, $srcWorkspace, $dstWorkspace = null, $overwrite = true, $lang = 'en', $port = '', $optionMigrateHistoryData = [])
{ {
@@ -2095,6 +2097,12 @@ class WorkspaceTools
$stop = microtime(true); $stop = microtime(true);
CLI::logging("<*> Migrating history data took " . ($stop - $start) . " seconds.\n"); CLI::logging("<*> Migrating history data took " . ($stop - $start) . " seconds.\n");
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
$start = microtime(true);
CLI::logging("> Optimizing Self-Service data in table APP_ASSIGN_SELF_SERVICE_VALUE_GROUP....\n");
$workspace->upgradeSelfServiceData();
$stop = microtime(true);
CLI::logging("<*> Optimizing Self-Service data in table APP_ASSIGN_SELF_SERVICE_VALUE_GROUP took " . ($stop - $start) . " seconds.\n");
} }
CLI::logging("Removing temporary files\n"); CLI::logging("Removing temporary files\n");