diff --git a/framework/core/src/Migrations/Migrator.php b/framework/core/src/Migrations/Migrator.php index 49fefa756..a9ecb6885 100755 --- a/framework/core/src/Migrations/Migrator.php +++ b/framework/core/src/Migrations/Migrator.php @@ -246,7 +246,7 @@ class Migrator { $file = implode('_', array_slice(explode('_', $file), 4)); - $class = 'Flarum\\Migrations\\' . ($extension ? Str::studly($extension) : 'Core') . '\\'; + $class = ($extension ? str_replace('-', '\\', $extension) : 'Core') . '\\Migrations\\'; $class .= Str::studly($file);