1
0
mirror of https://github.com/flarum/core.git synced 2025-07-18 15:21:16 +02:00

Fix migrate command and generated migration namespace

This commit is contained in:
Toby Zerner
2015-10-19 16:48:16 +10:30
parent 96c42ed337
commit 7490709af8
2 changed files with 5 additions and 3 deletions

View File

@@ -92,8 +92,10 @@ class MigrationCreator
*/
protected function populateStub($extension, $name, $stub, $table)
{
list($vendor, $package) = explode('-', $extension, 2);
$replacements = [
'{{namespace}}' => Str::studly($extension) ?: 'Flarum\Core',
'{{namespace}}' => Str::studly($vendor).'\\'.Str::studly($package) ?: 'Flarum\Core',
'{{name}}' => Str::studly($name),
'{{table}}' => $table
];