mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 02:37:42 +08:00
Change migration namespace format
This commit is contained in:
parent
e251cf34c4
commit
2a17590412
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user