[2.0] DDC-169 - Fixed introduced bug in Oracle Platform
This commit is contained in:
parent
197224de2e
commit
745b52b163
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user