1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[2.0] DDC-169 - Fixed introduced bug in Oracle Platform

This commit is contained in:
beberlei 2009-12-02 22:33:01 +00:00
parent 197224de2e
commit 745b52b163
2 changed files with 3 additions and 3 deletions

View File

@ -496,11 +496,11 @@ abstract class AbstractPlatform
*/
public function getDropConstraintSql($constraint, $table)
{
if ($constraint->getName()) {
if ($constraint instanceof \Doctrine\DBAL\Schema\Constraint) {
$constraint = $constraint->getName();
}
if ($table->getName()) {
if ($table instanceof \Doctrine\DBAL\Schema\Table) {
$table = $table->getName();
}

View File

@ -406,7 +406,7 @@ END;';
$sql[] = $this->getDropSequenceSql($table.'_SEQ');
$indexName = $table . '_AI_PK';
$sql[] = $this->getDropConstraintSql($table, $indexName);
$sql[] = $this->getDropConstraintSql($indexName, $table);
}
return $sql;