| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('event_store', function (Blueprint $table) { |
||
| 16 | $table->string('identifier', 40); |
||
| 17 | $table->unsignedInteger('sequence'); |
||
| 18 | $table->string('event', 100); |
||
| 19 | $table->json('payload'); |
||
| 20 | $table->timestamps(); |
||
| 21 | |||
| 22 | $table->primary(['identifier', 'sequence'], 'entity_version'); |
||
| 23 | $table->index('identifier'); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 37 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.