| @@ 14-21 (lines=8) @@ | ||
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::table('users', function(Blueprint $table) { |
|
| 17 | $table->renameColumn('name', 'username'); |
|
| 18 | $table->boolean('confirmed')->default(0); |
|
| 19 | $table->string('confirmation_code')->nullable(); |
|
| 20 | }); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Reverse the migrations. |
|
| @@ 8-14 (lines=7) @@ | ||
| 5 | ||
| 6 | class UsersAddSocial extends Migration |
|
| 7 | { |
|
| 8 | public function up() |
|
| 9 | { |
|
| 10 | Schema::table('users', function(Blueprint $table) { |
|
| 11 | $table->string('email')->nullable()->change(); |
|
| 12 | $table->boolean('is_social')->nullable()->default(0); |
|
| 13 | }); |
|
| 14 | } |
|
| 15 | ||
| 16 | public function down() |
|
| 17 | { |
|