GI-216 La tabla GMAIL_RELABELING no se genera con la columna LABELING_ID autoincremental

This commit is contained in:
Dante
2015-12-21 10:35:12 -04:00
parent aa69313129
commit ab63620f9b
5 changed files with 15 additions and 14 deletions

View File

@@ -342,6 +342,7 @@ class labelsGmail
{
$labelingQueue = new GmailRelabeling();
$labelingQueue->setCreateDate(date('Y-m-d H:i:s'));
$labelingQueue->setLabelingUid(G::generateUniqueID());
$labelingQueue->setAppUid($caseId);
$labelingQueue->setDelIndex($index);
$labelingQueue->setCurrentLastIndex($actualLastIndex);
@@ -354,7 +355,7 @@ class labelsGmail
{
$c = new \Criteria( 'workflow' );
$c->add( \GmailRelabelingPeer::STATUS, 'pending' );
$c->addAscendingOrderByColumn('LABELING_UID');
$c->addAscendingOrderByColumn('CREATE_DATE');
$list = \GmailRelabelingPeer::doSelect($c);
foreach($list as $task) {
try {