Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | |||
17 | Schema::create('CustomField', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('title', 25); |
||
20 | $table->string('friendly_name', 150); |
||
21 | $table->string('value', 250)->nullable(); |
||
22 | $table->string('type', 25); |
||
23 | $table->tinyinteger('visibility'); |
||
24 | }); |
||
25 | |||
26 | Schema::create('CustomValue', function (Blueprint $table) { |
||
27 | $table->increments('id'); |
||
28 | $table->integer('customfield')->unsigned(); |
||
29 | $table->string('entity', 100); |
||
30 | $table->integer('registry'); |
||
31 | $table->string('value', 250)->nullable(); |
||
32 | $table->timestamps(); |
||
33 | $table->softDeletes(); |
||
34 | |||
35 | $table->foreign('customfield')->references('id')->on('CustomField'); |
||
36 | }); |
||
37 | |||
38 | } |
||
39 | |||
54 |
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.