Files
speedtest-tracker/database/migrations/2022_08_31_202106_create_results_table.php
T
Alex Justesen eb5341a3f1 initial commit
2022-09-11 09:40:09 -04:00

35 lines
678 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('results', function (Blueprint $table) {
$table->id();
$table->foreignId('speedtest_id')->nullable();
$table->json('data');
$table->timestamp('created_at')
->useCurrent();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};