Skip to content

Commit da2fe07

Browse files
committed
CoreInstaller.php: No need to rv table order
If written only for FKs, it didn't work.
1 parent dabd45c commit da2fe07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bundle/RepositoryInstaller/Installer/CoreInstaller.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ protected function getDropSqlStatementsForExistingSchema(
9999
): array {
100100
$existingSchema = $this->db->getSchemaManager()->createSchema();
101101
$statements = [];
102-
// reverse table order for clean-up (due to FKs)
103-
$tables = array_reverse($newSchema->getTables());
102+
$tables = $newSchema->getTables();
104103
if ($databasePlatform->supportsForeignKeyConstraints()) {
105104
// cleanup pre-existing database: drop foreign keys
106105
foreach ($tables as $table) {

0 commit comments

Comments
 (0)