Hotfix v0.16.1 (#1156)

This commit is contained in:
Alex Justesen
2024-02-19 16:06:43 -05:00
committed by GitHub
parent 52a1314067
commit b19e4aec38
3 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ return [
*/
'build_date' => Carbon::parse('2024-02-19'),
'build_version' => 'v0.16.0',
'build_version' => 'v0.16.1',
/**
* General
@@ -17,29 +17,31 @@ return new class extends Migration
*/
public function up(): void
{
if (Schema::hasTable('results')) {
/**
* Rename the existing table so that a backup copy exists.
*/
Schema::rename('results', 'results_bad_json');
}
if (! Schema::hasTable('results') && ! Schema::hasTable('results_bad_json')) {
if (Schema::hasTable('results')) {
/**
* Rename the existing table so that a backup copy exists.
*/
Schema::rename('results', 'results_bad_json');
}
if (! Schema::hasTable('results')) {
/**
* Create a new results table based on a new DDL schema.
*/
Schema::create('results', function (Blueprint $table) {
$table->id();
$table->string('service')->default('ookla');
$table->float('ping', 8, 3)->nullable();
$table->unsignedBigInteger('download')->nullable();
$table->unsignedBigInteger('upload')->nullable();
$table->text('comments')->nullable();
$table->json('data')->nullable();
$table->string('status');
$table->boolean('scheduled')->default(false);
$table->timestamps();
});
if (! Schema::hasTable('results')) {
/**
* Create a new results table based on a new DDL schema.
*/
Schema::create('results', function (Blueprint $table) {
$table->id();
$table->string('service')->default('ookla');
$table->float('ping', 8, 3)->nullable();
$table->unsignedBigInteger('download')->nullable();
$table->unsignedBigInteger('upload')->nullable();
$table->text('comments')->nullable();
$table->json('data')->nullable();
$table->string('status');
$table->boolean('scheduled')->default(false);
$table->timestamps();
});
}
}
/**