We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b19e4ae commit cae2c7bCopy full SHA for cae2c7b
database/migrations/2024_02_18_100000_results_bad_json_table.php
@@ -17,15 +17,15 @@
17
*/
18
public function up(): void
19
{
20
- if (! Schema::hasTable('results') && ! Schema::hasTable('results_bad_json')) {
+ if (! Schema::hasTable('results_bad_json')) {
21
if (Schema::hasTable('results')) {
22
/**
23
* Rename the existing table so that a backup copy exists.
24
25
Schema::rename('results', 'results_bad_json');
26
}
27
28
- if (! Schema::hasTable('results')) {
+ if (! Schema::hasTable('results') && Schema::hasTable('results_bad_json')) {
29
30
* Create a new results table based on a new DDL schema.
31
0 commit comments