1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Fixed mysql sequence driver

This commit is contained in:
zYne 2007-01-15 19:02:00 +00:00
parent c60d50216a
commit 4106348287

View File

@ -320,8 +320,11 @@ class Doctrine_Export_Mysql extends Doctrine_Export
* @param string $start start value of the sequence; default is 1
* @return boolean
*/
public function createSequence($sequenceName, $seqcolName, $start = 1)
public function createSequence($sequenceName, $start = 1)
{
$sequenceName = $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName), true);
$seqcolName = $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME), true);
$query = 'CREATE TABLE ' . $sequenceName
. ' (' . $seqcolName . ' INT NOT NULL AUTO_INCREMENT, PRIMARY KEY ('
. $seqcolName . '))'