From 664448b9fc8427c5fe7dac8139ce92f52ed2a019 Mon Sep 17 00:00:00 2001 From: shibafu Date: Tue, 9 Apr 2019 22:47:18 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=84=E3=81=84=E3=81=AD=E7=A7=98=E5=8C=BF?= =?UTF-8?q?=E7=94=A8=E3=81=AE=E3=83=95=E3=83=A9=E3=82=B0=20users.private?= =?UTF-8?q?=5Flikes=20=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/User.php | 1 + ...4_09_224506_add_private_likes_to_users.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 database/migrations/2019_04_09_224506_add_private_likes_to_users.php diff --git a/app/User.php b/app/User.php index 3b2b251..ec9c4d7 100644 --- a/app/User.php +++ b/app/User.php @@ -20,6 +20,7 @@ class User extends Authenticatable 'is_protected', 'accept_analytics', 'display_name', 'description', 'twitter_id', 'twitter_name', + 'private_likes', ]; /** diff --git a/database/migrations/2019_04_09_224506_add_private_likes_to_users.php b/database/migrations/2019_04_09_224506_add_private_likes_to_users.php new file mode 100644 index 0000000..c2147bf --- /dev/null +++ b/database/migrations/2019_04_09_224506_add_private_likes_to_users.php @@ -0,0 +1,32 @@ +boolean('private_likes')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('private_likes'); + }); + } +}