From e98ed0c3ca8ac5cfd63fd6ee6b6d8d24cd5d2c39 Mon Sep 17 00:00:00 2001 From: shibafu Date: Mon, 11 Feb 2019 14:11:34 +0900 Subject: [PATCH] =?UTF-8?q?users.is=5Fadmin=20=E5=88=97=E3=81=AE=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...019_02_11_140657_add_is_admin_to_users.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2019_02_11_140657_add_is_admin_to_users.php diff --git a/database/migrations/2019_02_11_140657_add_is_admin_to_users.php b/database/migrations/2019_02_11_140657_add_is_admin_to_users.php new file mode 100644 index 0000000..b45ea47 --- /dev/null +++ b/database/migrations/2019_02_11_140657_add_is_admin_to_users.php @@ -0,0 +1,32 @@ +boolean('is_admin')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('is_admin'); + }); + } +}