From daddce5bd04903822a84255bf0343871eb0645b0 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 14 Aug 2015 12:55:46 +0930 Subject: [PATCH] Update migrations --- ...015_05_11_000000_add_suspended_until_to_users_table.php} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename extensions/suspend/migrations/{2015_05_11_000000_add_suspended_to_users_table.php => 2015_05_11_000000_add_suspended_until_to_users_table.php} (68%) 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'); }); }