diff --git a/framework/core/src/Database/Migration.php b/framework/core/src/Database/Migration.php index 7e4bcb52c..410e05671 100644 --- a/framework/core/src/Database/Migration.php +++ b/framework/core/src/Database/Migration.php @@ -27,7 +27,7 @@ abstract class Migration { return [ 'up' => function (Builder $schema) use ($name, $definition) { - $schema->create($name, function (Blueprint $table) use ($schema, $definition) { + $schema->create($name, function (Blueprint $table) use ($definition) { $definition($table); }); }, @@ -59,7 +59,7 @@ abstract class Migration { return [ 'up' => function (Builder $schema) use ($tableName, $columnDefinitions) { - $schema->table($tableName, function (Blueprint $table) use ($schema, $columnDefinitions) { + $schema->table($tableName, function (Blueprint $table) use ($columnDefinitions) { foreach ($columnDefinitions as $columnName => $options) { $type = array_shift($options); $table->addColumn($type, $columnName, $options);