Fix errors found in FT. Command 'migrate-list-unassigned'. User Id in APP_DELAY.

This commit is contained in:
Julio Cesar Laura Avendaño
2019-07-08 14:46:00 -04:00
parent ba0895dbf0
commit 9d0692f13c
3 changed files with 28 additions and 5 deletions

View File

@@ -2923,6 +2923,29 @@ class WorkspaceTools
return $query;
}
/**
* Re-populate only the unassigned list
*/
public function runRegenerateListUnassigned()
{
// Init Propel
$this->initPropel(true);
// Initialize Propel objects
$con = Propel::getConnection("workflow");
$stmt = $con->createStatement();
// Clean table
$stmt->executeQuery('TRUNCATE ' . $this->dbName . '.LIST_UNASSIGNED;');
// Populate table
$stmt->executeQuery($this->regenerateListUnassigned());
// Update some fields
$stmt->executeQuery($this->updateListProId('LIST_UNASSIGNED'));
$stmt->executeQuery($this->updateListTasId('LIST_UNASSIGNED'));
}
/**
* Return query to update PRO_ID in list table
*