Update migrations

This commit is contained in:
Toby Zerner 2015-08-14 12:55:33 +09:30
parent 8531580f06
commit 05c7438396

View File

@ -1,7 +1,7 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Flarum\Migrations\Migration;
class AddStickyToDiscussions extends Migration
{
@ -12,7 +12,7 @@ class AddStickyToDiscussions extends Migration
*/
public function up()
{
Schema::table('discussions', function (Blueprint $table) {
$this->schema->table('discussions', function (Blueprint $table) {
$table->boolean('is_sticky')->default(0);
});
}
@ -24,7 +24,7 @@ class AddStickyToDiscussions extends Migration
*/
public function down()
{
Schema::table('discussions', function (Blueprint $table) {
$this->schema->table('discussions', function (Blueprint $table) {
$table->dropColumn('is_sticky');
});
}