Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 15 |
Lines | 20 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fight', function(Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('round_id')->unsigned()->index(); |
||
19 | $table->foreign('round_id') |
||
20 | ->references('id') |
||
21 | ->on('round') |
||
22 | ->onUpdate('cascade') |
||
23 | ->onDelete('cascade'); |
||
24 | $table->integer('c1')->nullable()->unsigned()->index(); |
||
25 | |||
26 | $table->integer('c2')->nullable()->unsigned()->index(); |
||
27 | |||
28 | $table->tinyInteger("area"); |
||
29 | $table->tinyInteger("order"); |
||
30 | $table->timestamps(); |
||
31 | $table->engine = 'InnoDB'; |
||
32 | }); |
||
33 | } |
||
34 | |||
47 |
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.