From f1c5444c64922e02ec71be63e7864ea2aa20778a Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Tue, 7 Aug 2018 14:03:50 -0400 Subject: [PATCH] HOR-4777 --- workflow/engine/classes/WorkspaceTools.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/workflow/engine/classes/WorkspaceTools.php b/workflow/engine/classes/WorkspaceTools.php index 71fc9778f..4c9138412 100644 --- a/workflow/engine/classes/WorkspaceTools.php +++ b/workflow/engine/classes/WorkspaceTools.php @@ -1828,9 +1828,11 @@ class WorkspaceTools * @param string $filename the backup filename * @param string $srcWorkspace name of the source 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 $port of database if is empty take 3306 + * + * @throws Exception */ public static function restore($filename, $srcWorkspace, $dstWorkspace = null, $overwrite = true, $lang = 'en', $port = '', $optionMigrateHistoryData = []) { @@ -2095,6 +2097,12 @@ class WorkspaceTools $stop = microtime(true); 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");