| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ChangeUsersTable extends Migration |
||
| 8 | { |
||
| 9 | public function up() |
||
| 10 | { |
||
| 11 | Schema::create('chief_users', function (Blueprint $table) { |
||
| 12 | $table->increments('id'); |
||
| 13 | $table->string('firstname'); |
||
| 14 | $table->string('lastname'); |
||
| 15 | $table->string('email')->unique(); |
||
| 16 | $table->string('password')->nullable(); |
||
| 17 | $table->boolean('enabled')->default(0); |
||
| 18 | $table->rememberToken(); |
||
| 19 | $table->timestamp('last_login')->nullable(); |
||
| 20 | $table->timestamps(); |
||
| 21 | }); |
||
| 22 | |||
| 23 | Schema::create('chief_password_resets', function (Blueprint $table) { |
||
| 24 | $table->string('email')->index(); |
||
| 25 | $table->string('token')->index(); |
||
| 26 | $table->timestamp('created_at')->nullable(); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function down() |
||
| 31 | { |
||
| 32 | Schema::dropIfExists('chief_users'); |
||
| 33 | Schema::dropIfExists('chief_password_resets'); |
||
| 34 | } |
||
| 36 |