| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function down() |
||
| 37 | { |
||
| 38 | $twillUsersTable = config('twill.users_table', 'twill_users'); |
||
| 39 | |||
| 40 | if (Schema::hasTable($twillUsersTable) && Schema::hasColumn($twillUsersTable, 'google_2fa_secret')) { |
||
| 41 | Schema::table($twillUsersTable, function (Blueprint $table) { |
||
| 42 | $table->dropColumn('google_2fa_secret'); |
||
| 43 | }); |
||
| 44 | } |
||
| 45 | |||
| 46 | if (Schema::hasTable($twillUsersTable) && Schema::hasColumn($twillUsersTable, 'google_2fa_enabled')) { |
||
| 47 | Schema::table($twillUsersTable, function (Blueprint $table) { |
||
| 48 | $table->dropColumn('google_2fa_enabled'); |
||
| 49 | }); |
||
| 53 |