| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up(): void |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.statistics.tables.paths'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->string('host'); |
||
| 22 | $table->string('locale'); |
||
| 23 | $table->string('path'); |
||
| 24 | $table->string('method'); |
||
| 25 | $table->{$this->jsonable()}('parameters')->nullable(); |
||
| 26 | $table->integer('count')->unsigned()->default(0); |
||
| 27 | |||
| 28 | // Indexes |
||
| 29 | $table->unique(['host', 'path', 'method', 'locale']); |
||
| 30 | }); |
||
| 31 | } |
||
| 32 | |||
| 57 |