GI-216 La tabla GMAIL_RELABELING no se genera con la columna LABELING_ID autoincremental
This commit is contained in:
@@ -342,6 +342,7 @@ class labelsGmail
|
|||||||
{
|
{
|
||||||
$labelingQueue = new GmailRelabeling();
|
$labelingQueue = new GmailRelabeling();
|
||||||
$labelingQueue->setCreateDate(date('Y-m-d H:i:s'));
|
$labelingQueue->setCreateDate(date('Y-m-d H:i:s'));
|
||||||
|
$labelingQueue->setLabelingUid(G::generateUniqueID());
|
||||||
$labelingQueue->setAppUid($caseId);
|
$labelingQueue->setAppUid($caseId);
|
||||||
$labelingQueue->setDelIndex($index);
|
$labelingQueue->setDelIndex($index);
|
||||||
$labelingQueue->setCurrentLastIndex($actualLastIndex);
|
$labelingQueue->setCurrentLastIndex($actualLastIndex);
|
||||||
@@ -354,7 +355,7 @@ class labelsGmail
|
|||||||
{
|
{
|
||||||
$c = new \Criteria( 'workflow' );
|
$c = new \Criteria( 'workflow' );
|
||||||
$c->add( \GmailRelabelingPeer::STATUS, 'pending' );
|
$c->add( \GmailRelabelingPeer::STATUS, 'pending' );
|
||||||
$c->addAscendingOrderByColumn('LABELING_UID');
|
$c->addAscendingOrderByColumn('CREATE_DATE');
|
||||||
$list = \GmailRelabelingPeer::doSelect($c);
|
$list = \GmailRelabelingPeer::doSelect($c);
|
||||||
foreach($list as $task) {
|
foreach($list as $task) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class GmailRelabelingMapBuilder
|
|||||||
|
|
||||||
$tMap->setUseIdGenerator(false);
|
$tMap->setUseIdGenerator(false);
|
||||||
|
|
||||||
$tMap->addPrimaryKey('LABELING_UID', 'LabelingUid', 'int', CreoleTypes::INTEGER, true, null);
|
$tMap->addPrimaryKey('LABELING_UID', 'LabelingUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
$tMap->addColumn('CREATE_DATE', 'CreateDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
$tMap->addColumn('CREATE_DATE', 'CreateDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ abstract class BaseGmailRelabeling extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the labeling_uid field.
|
* The value for the labeling_uid field.
|
||||||
* @var int
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $labeling_uid;
|
protected $labeling_uid;
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ abstract class BaseGmailRelabeling extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Get the [labeling_uid] column value.
|
* Get the [labeling_uid] column value.
|
||||||
*
|
*
|
||||||
* @return int
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getLabelingUid()
|
public function getLabelingUid()
|
||||||
{
|
{
|
||||||
@@ -201,16 +201,16 @@ abstract class BaseGmailRelabeling extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Set the value of [labeling_uid] column.
|
* Set the value of [labeling_uid] column.
|
||||||
*
|
*
|
||||||
* @param int $v new value
|
* @param string $v new value
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setLabelingUid($v)
|
public function setLabelingUid($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is integer,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input value to an int (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
if ($v !== null && !is_string($v)) {
|
||||||
$v = (int) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->labeling_uid !== $v) {
|
if ($this->labeling_uid !== $v) {
|
||||||
@@ -398,7 +398,7 @@ abstract class BaseGmailRelabeling extends BaseObject implements Persistent
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$this->labeling_uid = $rs->getInt($startcol + 0);
|
$this->labeling_uid = $rs->getString($startcol + 0);
|
||||||
|
|
||||||
$this->create_date = $rs->getTimestamp($startcol + 1, null);
|
$this->create_date = $rs->getTimestamp($startcol + 1, null);
|
||||||
|
|
||||||
@@ -851,7 +851,7 @@ abstract class BaseGmailRelabeling extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the primary key for this object (row).
|
* Returns the primary key for this object (row).
|
||||||
* @return int
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getPrimaryKey()
|
public function getPrimaryKey()
|
||||||
{
|
{
|
||||||
@@ -861,7 +861,7 @@ abstract class BaseGmailRelabeling extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Generic method to set the primary key (labeling_uid column).
|
* Generic method to set the primary key (labeling_uid column).
|
||||||
*
|
*
|
||||||
* @param int $key Primary key.
|
* @param string $key Primary key.
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setPrimaryKey($key)
|
public function setPrimaryKey($key)
|
||||||
|
|||||||
@@ -5261,7 +5261,7 @@
|
|||||||
<parameter name="Create_options" value="" />
|
<parameter name="Create_options" value="" />
|
||||||
<parameter name="Comment" value="Task for label relabaling"/>
|
<parameter name="Comment" value="Task for label relabaling"/>
|
||||||
</vendor>
|
</vendor>
|
||||||
<column name="LABELING_UID" type="INTEGER" required="true" autoIncrement="true" primaryKey="true"/>
|
<column name="LABELING_UID" type="VARCHAR" size="32" required="true" primaryKey="true"/>
|
||||||
<column name="CREATE_DATE" type="TIMESTAMP" required="true"/>
|
<column name="CREATE_DATE" type="TIMESTAMP" required="true"/>
|
||||||
<column name="APP_UID" type="VARCHAR" size="32" required="true" default=""/>
|
<column name="APP_UID" type="VARCHAR" size="32" required="true" default=""/>
|
||||||
<column name="DEL_INDEX" type="INTEGER" required="true" default="0"/>
|
<column name="DEL_INDEX" type="INTEGER" required="true" default="0"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user