| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('micro_reference_project', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('micro_reference_id')->unsigned(); |
||
| 19 | $table->integer('project_id')->unsigned(); |
||
| 20 | $table->timestamps(); |
||
| 21 | }); |
||
| 22 | |||
| 23 | Schema::table('micro_reference_project', function (Blueprint $table) { |
||
| 24 | $table->foreign('micro_reference_id')->references('id')->on('micro_references')->onUpdate('CASCADE')->onDelete('CASCADE'); |
||
| 25 | $table->foreign('project_id')->references('id')->on('projects')->onUpdate('CASCADE')->onDelete('CASCADE'); |
||
| 26 | }); |
||
| 39 |