From c87d8c160b685eb3fb124fbc8641f4352c8a55fd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 20 Sep 2019 20:45:49 -0600 Subject: [PATCH] Add database migration --- ..._21_015556_add_language_to_users_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2019_09_21_015556_add_language_to_users_table.php diff --git a/database/migrations/2019_09_21_015556_add_language_to_users_table.php b/database/migrations/2019_09_21_015556_add_language_to_users_table.php new file mode 100644 index 000000000..6bbfa8082 --- /dev/null +++ b/database/migrations/2019_09_21_015556_add_language_to_users_table.php @@ -0,0 +1,32 @@ +string('language')->nullable()->index()->after('status'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('language'); + }); + } +}