PM-3850 "Problema al regenerar los nuevos listados..." SOLVED

This commit is contained in:
Luis Fernando Saisa Lopez
2015-10-21 17:08:40 -04:00
parent 62ff422511
commit 23c8ec8bb2
2 changed files with 4 additions and 11 deletions

View File

@@ -682,17 +682,7 @@ function migrate_new_cases_lists($command, $args) {
print_r("Upgrading database in " . pakeColor::colorize($workspace->name, "INFO") . "\n");
try {
$ws = $workspace->name;
$sContent = file_get_contents (PATH_DB . $ws . PATH_SEP . 'db.php');
if (strpos($sContent, 'rb_')) {
$workspace->onedb = false;
} else {
$workspace->onedb = true;
}
if ($workspace->onedb) {
$workspace->migrateList($workspace->name, true);
}
$workspace->migrateList($workspace->name, true);
echo "> List tables are done\n";
} catch (Exception $e) {

View File

@@ -2128,6 +2128,8 @@ class workspaceTools
}
CLI::logging("> Completed table LIST_PAUSED\n");
/*
//Currently this list is not being used, it must be redesigned. Currently the APP_CACHE_VIEW is still used.
//Select and Insert LIST_UNASSIGNED
$unaCriteria = $appCache->getSelAllColumns();
$unaCriteria->add(AppCacheViewPeer::USR_UID, "", CRITERIA::EQUAL);
@@ -2144,6 +2146,7 @@ class workspaceTools
}
CLI::logging("> Completed table LIST_UNASSIGNED\n");
CLI::logging("> Completed table LIST_UNASSIGNED_GROUP\n");
*/
// ADD LISTS COUNTS
$aTypes = array(