@@ 789-793 (lines=5) @@ | ||
786 | $sql = []; |
|
787 | $tableName = $diff->getName($this)->getQuotedName($this); |
|
788 | ||
789 | foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) { |
|
790 | if (! in_array($foreignKey, $diff->changedForeignKeys, true)) { |
|
791 | $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName); |
|
792 | } |
|
793 | } |
|
794 | ||
795 | return $sql; |
|
796 | } |
|
@@ 857-861 (lines=5) @@ | ||
854 | ? $diff->getNewName()->getQuotedName($this) |
|
855 | : $diff->getName($this)->getQuotedName($this); |
|
856 | ||
857 | foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) { |
|
858 | if (! in_array($foreignKey, $diff->changedForeignKeys, true)) { |
|
859 | $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName); |
|
860 | } |
|
861 | } |
|
862 | ||
863 | return $sql; |
|
864 | } |