Skip to content

Commit 6100d21

Browse files
committed
Refactor
1 parent ae229f4 commit 6100d21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/SchemaToDatabase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,14 @@ public static function dbModelsForDropTable(array $schemasToDrop): array
289289

290290
$table = Yii::$app->db->schema->getTableSchema("{{%$tableName}}", true);
291291
if ($table) {
292-
$dbModelHere = new DbModel([
292+
$localDbModel = new DbModel([
293293
'pkName' => $table->primaryKey[0],
294294
'name' => $schemaName,
295295
'tableName' => $tableName,
296296
'attributes' => static::attributesFromColumnSchemas(static::enhanceColumnSchemas($table->columns)),
297297
'drop' => true
298298
]);
299-
$dbModelsToDrop[$key] = $dbModelHere;
299+
$dbModelsToDrop[$key] = $localDbModel;
300300
}
301301
}
302302
return $dbModelsToDrop;

0 commit comments

Comments
 (0)