Skip to content

Commit 2d669a3

Browse files
committed
Fix backups table not being removed correctly; closes pterodactyl#2343
1 parent 79f616f commit 2d669a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2020_04_03_230614_create_backups_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function up()
2626
// Take any of the results, most likely "backups" and "backup_logs" and rename them to have a
2727
// suffix so data isn't completely lost, but they're no longer in the way of this migration...
2828
foreach ($results as $result) {
29-
Schema::rename($result['TABLE_NAME'], $result['TABLE_NAME'] . '_plugin_bak');
29+
Schema::rename($result->TABLE_NAME, $result->TABLE_NAME. '_plugin_bak');
3030
}
3131

3232
Schema::create('backups', function (Blueprint $table) {

0 commit comments

Comments
 (0)