| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | $twillUsersTable = config('twill.users_table', 'twill_users'); |
||
| 17 | |||
| 18 | if (Schema::hasTable($twillUsersTable) && !Schema::hasColumn($twillUsersTable, 'google_2fa_secret')) { |
||
| 19 | Schema::table($twillUsersTable, function (Blueprint $table) { |
||
| 20 | $table->string('google_2fa_secret')->nullable(); |
||
| 21 | }); |
||
| 22 | } |
||
| 23 | |||
| 24 | if (Schema::hasTable($twillUsersTable) && !Schema::hasColumn($twillUsersTable, 'google_2fa_enabled')) { |
||
| 25 | Schema::table($twillUsersTable, function (Blueprint $table) { |
||
| 26 | $table->boolean('google_2fa_enabled')->default(false); |
||
| 27 | }); |
||
| 53 |