Fix errors found in FT. Command 'migrate-list-unassigned'. User Id in APP_DELAY.
This commit is contained in:
@@ -1038,7 +1038,7 @@ function migrate_new_cases_lists($command, $args, $opts)
|
||||
foreach ($workspaces as $workspace) {
|
||||
print_r("Upgrading database in " . pakeColor::colorize($workspace->name, "INFO") . "\n");
|
||||
try {
|
||||
$workspace->migrateList($workspace->name, true, $lang);
|
||||
$workspace->migrateList(true, $lang);
|
||||
echo "> List tables are done\n";
|
||||
} catch (Exception $e) {
|
||||
G::outRes("> Error: " . CLI::error($e->getMessage()) . "\n");
|
||||
@@ -1063,17 +1063,15 @@ function migrate_counters($command, $args)
|
||||
}
|
||||
}
|
||||
|
||||
function migrate_list_unassigned($command, $args, $opts)
|
||||
function migrate_list_unassigned($command, $args)
|
||||
{
|
||||
$filter = new InputFilter();
|
||||
$opts = $filter->xssFilterHard($opts);
|
||||
$args = $filter->xssFilterHard($args);
|
||||
$lang = array_key_exists("lang", $opts) ? $opts['lang'] : 'en';
|
||||
$workspaces = get_workspaces_from_args($args);
|
||||
foreach ($workspaces as $workspace) {
|
||||
print_r("Upgrading Unassigned List in" . pakeColor::colorize($workspace->name, "INFO") . "\n");
|
||||
try {
|
||||
$workspace->regenerateListUnassigned();
|
||||
$workspace->runRegenerateListUnassigned();
|
||||
echo "> Unassigned List is done\n";
|
||||
} catch (Exception $e) {
|
||||
G::outRes("> Error: " . CLI::error($e->getMessage()) . "\n");
|
||||
|
||||
Reference in New Issue
Block a user