<?php namespace Grcote7\Profile\Updates;

use Schema;
use October\Rain\Database\Updates\Migration;

class AddNewFields extends Migration {

  public function up() {
    Schema::table('users', function ($table) {
      $table->string('facebook')->nullable();
      $table->text('bio')->nullable();
    });
  }

  public function down() {
    $table->dropDown([
                       'facebook',
                       'bio'
                     ]);
  }

}

// php artisan plugin:refresh grcote7.profile

<?php namespace Grcote7\Profile\Updates;

use Schema;
use October\Rain\Database\Updates\Migration;

class AddNewFields extends Migration {

  public function up() {
    Schema::table('users', function ($table) {
      $table->string('facebook')->nullable();
      $table->text('bio')->nullable();
    });
  }

  public function down() {
    Schema::table('users', function ($table) {
      $table->dropColumn([
                           'facebook',
                           'bio'
                         ]);
    });
  }
}
// php artisan plugin:refresh grcote7.profile

Fix down() in db users update pour plugin profile
Fix down() in db users update pour plugin profile

