| Conditions | 6 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | Schema::table(config('user.table'), function (Blueprint $table) { |
||
| 18 | if (!Schema::hasColumn('name')) { |
||
| 19 | $table->string('name')->default('name'); |
||
| 20 | } |
||
| 21 | if (!Schema::hasColumn('firstname')) { |
||
| 22 | $table->string('firstname')->default('firstname'); |
||
| 23 | } |
||
| 24 | if (!Schema::hasColumn('lastname')) { |
||
| 25 | $table->string('lastname')->default('lastname'); |
||
| 26 | } |
||
| 27 | if (!Schema::hasColumn('email')) { |
||
| 28 | $table->string('email')->unique(); |
||
| 29 | } |
||
| 30 | |||
| 31 | if (!Schema::hasColumn('password')) { |
||
| 32 | $table->string('password', 60); |
||
| 33 | } |
||
| 34 | }); |
||
| 35 | |||
| 36 | } |
||
| 37 | |||
| 48 |