Skip to content

Commit cae2c7b

Browse files
authored
Hotfix v0.16.2 (alexjustesen#1158)
1 parent b19e4ae commit cae2c7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2024_02_18_100000_results_bad_json_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
*/
1818
public function up(): void
1919
{
20-
if (! Schema::hasTable('results') && ! Schema::hasTable('results_bad_json')) {
20+
if (! Schema::hasTable('results_bad_json')) {
2121
if (Schema::hasTable('results')) {
2222
/**
2323
* Rename the existing table so that a backup copy exists.
2424
*/
2525
Schema::rename('results', 'results_bad_json');
2626
}
2727

28-
if (! Schema::hasTable('results')) {
28+
if (! Schema::hasTable('results') && Schema::hasTable('results_bad_json')) {
2929
/**
3030
* Create a new results table based on a new DDL schema.
3131
*/

0 commit comments

Comments
 (0)