1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

test: fix

This commit is contained in:
Sami Mazouz
2024-10-19 18:05:33 +01:00
parent e3f969588c
commit 17ec1567a4
3 changed files with 13 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ abstract class Migration
{
return [
'up' => function (Builder $schema) use ($name, $definition) {
$schema->create($name, function (Blueprint $table) use ($definition) {
$definition($table);
$schema->create($name, function (Blueprint $table) use ($definition, $schema) {
$definition($table, $schema);
});
},
'down' => function (Builder $schema) use ($name) {
@@ -40,8 +40,8 @@ abstract class Migration
return [
'up' => function (Builder $schema) use ($name, $definition) {
if (! $schema->hasTable($name)) {
$schema->create($name, function (Blueprint $table) use ($definition) {
$definition($table);
$schema->create($name, function (Blueprint $table) use ($definition, $schema) {
$definition($table, $schema);
});
}
},