From 84f29de969f5d3557900d2027f1a6ff0076b28b4 Mon Sep 17 00:00:00 2001 From: printempw Date: Thu, 26 Jul 2018 17:32:24 +0800 Subject: [PATCH] Add verification to users table --- ...130617_add_verification_to_users_table.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2018_07_26_130617_add_verification_to_users_table.php diff --git a/database/migrations/2018_07_26_130617_add_verification_to_users_table.php b/database/migrations/2018_07_26_130617_add_verification_to_users_table.php new file mode 100644 index 00000000..9695a053 --- /dev/null +++ b/database/migrations/2018_07_26_130617_add_verification_to_users_table.php @@ -0,0 +1,33 @@ +boolean('verified')->default(false); + $table->string('verification_token')->default(''); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('verified'); + $table->dropColumn('verification_token'); + }); + } +}