Commit 41063482 authored by zYne's avatar zYne

Fixed mysql sequence driver

parent c60d5021
......@@ -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 . '))'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment