| Conditions | 4 |
| Paths | 6 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 43 | public function down(): void |
||
| 44 | { |
||
| 45 | foreach ($this->tables as $table) { |
||
| 46 | try { |
||
| 47 | if (Schema::hasTable($table)) { |
||
| 48 | Log::warning("Un-prefixed table '{$table}' already exists. Verify your migration status."); |
||
| 49 | continue; // Migration may be partly done already... |
||
| 50 | } |
||
| 51 | |||
| 52 | Schema::rename($this->prefix . $table, $table); |
||
| 53 | } catch (Throwable $e) { |
||
| 54 | Log::error($e->getMessage()); |
||
| 55 | } |
||
| 59 |