From bdfe633f28dda645d26eddb14036a4b1e19f6f03 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 15 Jun 2019 23:29:51 -0600 Subject: [PATCH] Add new migration --- ..._051157_add_profile_ids_to_users_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2019_06_16_051157_add_profile_ids_to_users_table.php diff --git a/database/migrations/2019_06_16_051157_add_profile_ids_to_users_table.php b/database/migrations/2019_06_16_051157_add_profile_ids_to_users_table.php new file mode 100644 index 000000000..782285333 --- /dev/null +++ b/database/migrations/2019_06_16_051157_add_profile_ids_to_users_table.php @@ -0,0 +1,32 @@ +bigInteger('profile_id')->unique()->unsigned()->nullable()->index()->after('id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('profile_id'); + }); + } +}