From 91aab4cd2166f3537c336273d8e74b0a17173f1b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 2 Oct 2015 17:49:43 +0930 Subject: [PATCH] Change migration namespace format --- framework/core/src/Migrations/Migrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);