From 2979edace2beaeb4d5e30fb87ed8f2c774c1793a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 10 Jan 2019 20:19:39 -0700 Subject: [PATCH] Add database migration --- ...019_01_11_005556_update_profiles_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2019_01_11_005556_update_profiles_table.php diff --git a/database/migrations/2019_01_11_005556_update_profiles_table.php b/database/migrations/2019_01_11_005556_update_profiles_table.php new file mode 100644 index 000000000..829bedbc4 --- /dev/null +++ b/database/migrations/2019_01_11_005556_update_profiles_table.php @@ -0,0 +1,34 @@ +boolean('unlisted')->default(false)->index()->after('bio'); + $table->boolean('cw')->default(false)->index()->after('unlisted'); + $table->boolean('no_autolink')->default(false)->index()->after('cw'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $table->dropColumn('unlisted'); + $table->dropColumn('cw'); + $table->dropColumn('no_autolink'); + } +}