Store + display more info form speedtests

This commit is contained in:
Henry Whitaker
2020-06-20 18:18:15 +01:00
parent 91f457c7d1
commit 0027de2f4b
12 changed files with 428 additions and 142607 deletions

View File

@@ -0,0 +1,47 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateSpeedtestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('speedtests', function($table) {
$table->integer('server_id')->nullable();
$table->string('server_name')->nullable();
$table->string('server_host')->nullable();
$table->string('url')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('speedtests', function($table) {
$table->dropColumn('server_id');
});
Schema::table('speedtests', function($table) {
$table->dropColumn('server_name');
});
Schema::table('speedtests', function($table) {
$table->dropColumn('server_host');
});
Schema::table('speedtests', function($table) {
$table->dropColumn('url');
});
}
}