From fde11350c73e0cf9594153e390573969b8d89683 Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Wed, 16 Sep 2020 05:04:04 +0500 Subject: [PATCH] migration update --- .../2014_10_12_000000_create_users_table.php | 2 -- ..._add_profile_photo_path_to_users_table.php | 32 +++++++++++++++++++ ...324_add_current_team_id_to_users_table.php | 32 +++++++++++++++++++ 3 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 database/migrations/2020_09_16_050232_add_profile_photo_path_to_users_table.php create mode 100644 database/migrations/2020_09_16_050324_add_current_team_id_to_users_table.php diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 1f66d84..621a24e 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -20,8 +20,6 @@ class CreateUsersTable extends Migration $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->rememberToken(); - $table->string('current_team_id')->nullable(); - $table->text('profile_photo_path')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/2020_09_16_050232_add_profile_photo_path_to_users_table.php b/database/migrations/2020_09_16_050232_add_profile_photo_path_to_users_table.php new file mode 100644 index 0000000..f352c5e --- /dev/null +++ b/database/migrations/2020_09_16_050232_add_profile_photo_path_to_users_table.php @@ -0,0 +1,32 @@ +text('profile_photo_path')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('profile_photo_path'); + }); + } +} diff --git a/database/migrations/2020_09_16_050324_add_current_team_id_to_users_table.php b/database/migrations/2020_09_16_050324_add_current_team_id_to_users_table.php new file mode 100644 index 0000000..25c7498 --- /dev/null +++ b/database/migrations/2020_09_16_050324_add_current_team_id_to_users_table.php @@ -0,0 +1,32 @@ +string('current_team_id')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('current_team_id'); + }); + } +}