mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
Fix backups table not being removed correctly; closes #2343
This commit is contained in:
parent
79f616f791
commit
2d669a3059
@ -26,7 +26,7 @@ class CreateBackupsTable extends Migration
|
|||||||
// Take any of the results, most likely "backups" and "backup_logs" and rename them to have a
|
// Take any of the results, most likely "backups" and "backup_logs" and rename them to have a
|
||||||
// suffix so data isn't completely lost, but they're no longer in the way of this migration...
|
// suffix so data isn't completely lost, but they're no longer in the way of this migration...
|
||||||
foreach ($results as $result) {
|
foreach ($results as $result) {
|
||||||
Schema::rename($result['TABLE_NAME'], $result['TABLE_NAME'] . '_plugin_bak');
|
Schema::rename($result->TABLE_NAME, $result->TABLE_NAME. '_plugin_bak');
|
||||||
}
|
}
|
||||||
|
|
||||||
Schema::create('backups', function (Blueprint $table) {
|
Schema::create('backups', function (Blueprint $table) {
|
||||||
|
Loading…
Reference in New Issue
Block a user