Merged in bugfix/HOR-2698 (pull request #5519)
HOR-2698 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
4c07012e19
@@ -63,7 +63,7 @@ class AppSequenceMapBuilder
|
|||||||
$tMap = $this->dbMap->addTable('APP_SEQUENCE');
|
$tMap = $this->dbMap->addTable('APP_SEQUENCE');
|
||||||
$tMap->setPhpName('AppSequence');
|
$tMap->setPhpName('AppSequence');
|
||||||
|
|
||||||
$tMap->setUseIdGenerator(true);
|
$tMap->setUseIdGenerator(false);
|
||||||
|
|
||||||
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
|
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
|
||||||
|
|
||||||
|
|||||||
@@ -198,8 +198,6 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
|||||||
// should always be true here (even though technically
|
// should always be true here (even though technically
|
||||||
// BasePeer::doInsert() can insert multiple rows).
|
// BasePeer::doInsert() can insert multiple rows).
|
||||||
|
|
||||||
$this->setId($pk); //[IMV] update autoincrement primary key
|
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
} else {
|
} else {
|
||||||
$affectedRows += AppSequencePeer::doUpdate($this, $con);
|
$affectedRows += AppSequencePeer::doUpdate($this, $con);
|
||||||
|
|||||||
@@ -338,8 +338,6 @@ abstract class BaseAppSequencePeer
|
|||||||
$criteria = $values->buildCriteria(); // build Criteria from AppSequence object
|
$criteria = $values->buildCriteria(); // build Criteria from AppSequence object
|
||||||
}
|
}
|
||||||
|
|
||||||
//$criteria->remove(AppSequencePeer::ID); // remove pkey col since this table uses auto-increment
|
|
||||||
|
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
$criteria->setDbName(self::DATABASE_NAME);
|
$criteria->setDbName(self::DATABASE_NAME);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
</unique>
|
</unique>
|
||||||
</table>
|
</table>
|
||||||
<table name="APP_SEQUENCE" idMethod="native">
|
<table name="APP_SEQUENCE" idMethod="native">
|
||||||
<column name="ID" type="INTEGER" required="true" primaryKey="true" autoIncrement="true" />
|
<column name="ID" type="INTEGER" required="true" primaryKey="true"/>
|
||||||
</table>
|
</table>
|
||||||
<table name="APP_DELEGATION" idMethod="native">
|
<table name="APP_DELEGATION" idMethod="native">
|
||||||
<vendor type="mysql">
|
<vendor type="mysql">
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ DROP TABLE IF EXISTS `APP_SEQUENCE`;
|
|||||||
|
|
||||||
CREATE TABLE `APP_SEQUENCE`
|
CREATE TABLE `APP_SEQUENCE`
|
||||||
(
|
(
|
||||||
`ID` INTEGER NOT NULL AUTO_INCREMENT,
|
`ID` INTEGER NOT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
)ENGINE=InnoDB ;
|
)ENGINE=InnoDB ;
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user