1
0
mirror of synced 2025-01-29 19:41:45 +03:00

export & migration fix

This commit is contained in:
romanb 2007-10-17 18:49:02 +00:00
parent d9e213a2cf
commit 29c220f482
2 changed files with 2 additions and 2 deletions

View File

@ -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 (';

View File

@ -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();