1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 03:01:22 +02:00

Update migrations

This commit is contained in:
Toby Zerner
2015-08-14 12:55:46 +09:30
parent ea5dead830
commit daddce5bd0

View File

@@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Flarum\Migrations\Migration;
class AddSuspendedUntilToUsersTable extends Migration class AddSuspendedUntilToUsersTable extends Migration
{ {
@@ -12,7 +12,7 @@ class AddSuspendedUntilToUsersTable extends Migration
*/ */
public function up() public function up()
{ {
app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) { $this->schema->table('users', function (Blueprint $table) {
$table->dateTime('suspended_until')->nullable(); $table->dateTime('suspended_until')->nullable();
}); });
} }
@@ -24,7 +24,7 @@ class AddSuspendedUntilToUsersTable extends Migration
*/ */
public function down() public function down()
{ {
app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) { $this->schema->table('users', function (Blueprint $table) {
$table->dropColumn('suspended_until'); $table->dropColumn('suspended_until');
}); });
} }