framework/stubs/migrations/update.stub

34 lines
583 B
Plaintext
Raw Normal View History

2015-09-17 10:46:38 +08:00
<?php
namespace Flarum\Migrations\{{extension}};
use Illuminate\Database\Schema\Blueprint;
use Flarum\Migrations\Migration;
class {{name}} extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$this->schema->table('{{table}}', function (Blueprint $table) {
//
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$this->schema->table('{{table}}', function (Blueprint $table) {
//
});
}
}