1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 19:04:29 +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,23 +1,18 @@
<?php
namespace {{namespace}}\Migration;
use Flarum\Database\AbstractMigration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
class {{name}} extends AbstractMigration
{
public function up()
{
$this->schema->table('{{table}}', function (Blueprint $table) {
return [
'up' => function (Builder $schema) {
$schema->table('{{table}}', function (Blueprint $table) {
//
});
},
'down' => function (Builder $schema) {
$schema->table('{{table}}', function (Blueprint $table) {
//
});
}
public function down()
{
$this->schema->table('{{table}}', function (Blueprint $table) {
//
});
}
}
];