Skip to content

Commit b19e4ae

Browse files
authored
Hotfix v0.16.1 (alexjustesen#1156)
1 parent 52a1314 commit b19e4ae

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

config/speedtest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
'build_date' => Carbon::parse('2024-02-19'),
1010

11-
'build_version' => 'v0.16.0',
11+
'build_version' => 'v0.16.1',
1212

1313
/**
1414
* General

database/migrations/2024_02_18_100000_results_bad_json_table.php

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,31 @@
1717
*/
1818
public function up(): void
1919
{
20-
if (Schema::hasTable('results')) {
21-
/**
22-
* Rename the existing table so that a backup copy exists.
23-
*/
24-
Schema::rename('results', 'results_bad_json');
25-
}
20+
if (! Schema::hasTable('results') && ! 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+
}
2627

27-
if (! Schema::hasTable('results')) {
28-
/**
29-
* Create a new results table based on a new DDL schema.
30-
*/
31-
Schema::create('results', function (Blueprint $table) {
32-
$table->id();
33-
$table->string('service')->default('ookla');
34-
$table->float('ping', 8, 3)->nullable();
35-
$table->unsignedBigInteger('download')->nullable();
36-
$table->unsignedBigInteger('upload')->nullable();
37-
$table->text('comments')->nullable();
38-
$table->json('data')->nullable();
39-
$table->string('status');
40-
$table->boolean('scheduled')->default(false);
41-
$table->timestamps();
42-
});
28+
if (! Schema::hasTable('results')) {
29+
/**
30+
* Create a new results table based on a new DDL schema.
31+
*/
32+
Schema::create('results', function (Blueprint $table) {
33+
$table->id();
34+
$table->string('service')->default('ookla');
35+
$table->float('ping', 8, 3)->nullable();
36+
$table->unsignedBigInteger('download')->nullable();
37+
$table->unsignedBigInteger('upload')->nullable();
38+
$table->text('comments')->nullable();
39+
$table->json('data')->nullable();
40+
$table->string('status');
41+
$table->boolean('scheduled')->default(false);
42+
$table->timestamps();
43+
});
44+
}
4345
}
4446

4547
/**

database/settings/2024_02_19_022251_add_prune_results_to_general_settings.php renamed to database/settings/2024_02_18_010000_add_prune_results_to_general_settings.php

File renamed without changes.

0 commit comments

Comments
 (0)