Skip to content

Commit 9a86386

Browse files
committed
Fix migration table exist
1 parent 6353262 commit 9a86386

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Migration/AllowNullMigration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ private function fetchNonNullableColumns(): array
121121

122122
$result = [];
123123
foreach ($langColumns as $tableName => $tableColumnNames) {
124+
if (!$schemaManager->tablesExist([$tableName])) {
125+
continue;
126+
}
127+
124128
/** @var Column[] $columns */
125129
$columns = [];
126130
// The schema manager return the column list with lowercase keys, wo got to use the real names.

0 commit comments

Comments
 (0)