| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function up() |
||
| 18 | { |
||
| 19 | Schema::create($this->tablePrefix.'links', function(Blueprint $table) { |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->unsignedInteger('module_id'); |
||
| 22 | $table->string('label'); |
||
| 23 | $table->string('icon')->nullable(); |
||
| 24 | $table->string('type'); |
||
| 25 | $table->string('url')->nullable(); |
||
| 26 | $table->unsignedInteger('sequence'); |
||
| 27 | $table->text('data')->nullable(); |
||
| 28 | $table->timestamps(); |
||
| 29 | |||
| 30 | // Foreign keys |
||
| 31 | $table->foreign('module_id') |
||
| 32 | ->references('id')->on($this->tablePrefix.'modules') |
||
| 33 | ->onDelete('cascade'); |
||
| 34 | }); |
||
| 47 |