diff --git a/extensions/suspend/migrations/2015_05_11_000000_add_suspended_to_users_table.php b/extensions/suspend/migrations/2015_05_11_000000_add_suspended_until_to_users_table.php similarity index 68% rename from extensions/suspend/migrations/2015_05_11_000000_add_suspended_to_users_table.php rename to extensions/suspend/migrations/2015_05_11_000000_add_suspended_until_to_users_table.php index 16a173ab8..10115b7af 100644 --- a/extensions/suspend/migrations/2015_05_11_000000_add_suspended_to_users_table.php +++ b/extensions/suspend/migrations/2015_05_11_000000_add_suspended_until_to_users_table.php @@ -1,7 +1,7 @@ getSchemaBuilder()->table('users', function (Blueprint $table) { + $this->schema->table('users', function (Blueprint $table) { $table->dateTime('suspended_until')->nullable(); }); } @@ -24,7 +24,7 @@ class AddSuspendedUntilToUsersTable extends Migration */ public function down() { - app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) { + $this->schema->table('users', function (Blueprint $table) { $table->dropColumn('suspended_until'); }); }