1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class UpdateSettingsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('user_settings', function (Blueprint $table) {
- $table->boolean('show_profile_followers')->default(true);
- $table->boolean('show_profile_follower_count')->default(true);
- $table->boolean('show_profile_following')->default(true);
- $table->boolean('show_profile_following_count')->default(true);
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('user_settings', function (Blueprint $table) {
- $table->dropColumn(['show_profile_followers','show_profile_follower_count','show_profile_following','show_profile_following_count']);
- });
- }
- }
|