for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Laravel Sense.
*
* (c) Anton Komarev <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSenseRequestDbQueriesTable extends Migration
{
/**
* Run the migrations.
* @return void
public function up(): void
Schema::create('sense_request_db_queries', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('request_id');
$table->unsignedBigInteger('statement_id');
$table->string('connection');
$table->mediumText('sql');
$table->json('bindings');
$table->double('time', 6, 2);
$table->timestamps();
$table->index('request_id');
$table->index('statement_id');
});
}
* Reverse the migrations.
public function down(): void
Schema::dropIfExists('sense_request_db_queries');