1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 20:04:24 +02:00

Update generate:migration command to deal with new migration structure

This commit is contained in:
Franz Liedke
2016-02-24 23:20:33 +09:00
parent 13fe162db3
commit 59613910b1
5 changed files with 55 additions and 97 deletions

View File

@@ -1,18 +1,13 @@
<?php
namespace {{namespace}}\Migration;
use Illuminate\Database\Schema\Builder;
use Flarum\Database\AbstractMigration;
return [
'up' => function (Builder $schema) {
//
},
class {{name}} extends AbstractMigration
{
public function up()
{
'down' => function (Builder $schema) {
//
}
public function down()
{
//
}
}
];