|
@@ 778-782 (lines=5) @@
|
| 775 |
|
$sql = []; |
| 776 |
|
$tableName = $diff->getName($this)->getQuotedName($this); |
| 777 |
|
|
| 778 |
|
foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) { |
| 779 |
|
if (! in_array($foreignKey, $diff->changedForeignKeys, true)) { |
| 780 |
|
$sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName); |
| 781 |
|
} |
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
return $sql; |
| 785 |
|
} |
|
@@ 846-850 (lines=5) @@
|
| 843 |
|
? $diff->getNewName()->getQuotedName($this) |
| 844 |
|
: $diff->getName($this)->getQuotedName($this); |
| 845 |
|
|
| 846 |
|
foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) { |
| 847 |
|
if (! in_array($foreignKey, $diff->changedForeignKeys, true)) { |
| 848 |
|
$sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName); |
| 849 |
|
} |
| 850 |
|
} |
| 851 |
|
|
| 852 |
|
return $sql; |
| 853 |
|
} |