From 2d669a3059a73b3dcc310990748e13ce4eb80811 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 15 Sep 2020 19:27:02 -0700 Subject: [PATCH] Fix backups table not being removed correctly; closes #2343 --- database/migrations/2020_04_03_230614_create_backups_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2020_04_03_230614_create_backups_table.php b/database/migrations/2020_04_03_230614_create_backups_table.php index 10d0794d99..68eeee2ce9 100644 --- a/database/migrations/2020_04_03_230614_create_backups_table.php +++ b/database/migrations/2020_04_03_230614_create_backups_table.php @@ -26,7 +26,7 @@ public function up() // 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... 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) {