We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae229f4 commit 6100d21Copy full SHA for 6100d21
src/lib/SchemaToDatabase.php
@@ -289,14 +289,14 @@ public static function dbModelsForDropTable(array $schemasToDrop): array
289
290
$table = Yii::$app->db->schema->getTableSchema("{{%$tableName}}", true);
291
if ($table) {
292
- $dbModelHere = new DbModel([
+ $localDbModel = new DbModel([
293
'pkName' => $table->primaryKey[0],
294
'name' => $schemaName,
295
'tableName' => $tableName,
296
'attributes' => static::attributesFromColumnSchemas(static::enhanceColumnSchemas($table->columns)),
297
'drop' => true
298
]);
299
- $dbModelsToDrop[$key] = $dbModelHere;
+ $dbModelsToDrop[$key] = $localDbModel;
300
}
301
302
return $dbModelsToDrop;
0 commit comments