Commit 29c220f4 authored by romanb's avatar romanb

export & migration fix

parent d9e213a2
......@@ -908,7 +908,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
{
$sql = '';
if (isset($definition['name'])) {
$sql .= 'CONSTRAINT ' . $this->conn->quoteIdentifier($definition['name']) . ' ';
$sql .= ' ' . $this->conn->quoteIdentifier($definition['name']) . ' ';
}
$sql .= 'FOREIGN KEY (';
......
......@@ -418,7 +418,7 @@ class Doctrine_Migration
* @param string $constraintName
* @return void
*/
public function dropConstraint($tableName, $constraintName, $primary)
public function dropConstraint($tableName, $constraintName, $primary = false)
{
$options = get_defined_vars();
......
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