Skip to content

Commit

Permalink
Fix backups table not being removed correctly; closes #2343
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Sep 16, 2020
1 parent 79f616f commit 2d669a3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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) {
Expand Down

0 comments on commit 2d669a3

Please sign in to comment.