| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function up(): void |
||
| 26 | { |
||
| 27 | Schema::create('sense_statement_summaries', function (Blueprint $table) { |
||
| 28 | $table->bigIncrements('id'); |
||
| 29 | $table->unsignedBigInteger('request_id'); |
||
| 30 | $table->unsignedBigInteger('statement_id'); |
||
| 31 | $table->string('connection'); |
||
| 32 | $table->unsignedInteger('queries_count')->default('0'); |
||
| 33 | $table->double('time_total', 10, 2)->default('0'); |
||
| 34 | $table->double('time_min', 6, 2)->default('0'); |
||
| 35 | $table->double('time_max', 6, 2)->default('0'); |
||
| 36 | $table->timestamps(); |
||
| 37 | |||
| 38 | $table->index([ |
||
| 39 | 'request_id', |
||
| 40 | 'statement_id', |
||
| 41 | 'connection', |
||
| 42 | ], 'sense_statement_summaries_request_statement_connection_index'); |
||
| 43 | }); |
||
| 56 |