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('skill_work_sample', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('work_sample_id')->unsigned(); |
||
19 | $table->integer('skill_id')->unsigned(); |
||
20 | $table->timestamps(); |
||
21 | }); |
||
22 | |||
23 | Schema::table('skill_work_sample', function (Blueprint $table) { |
||
24 | $table->foreign('work_sample_id')->references('id')->on('work_samples')->onUpdate('CASCADE')->onDelete('CASCADE'); |
||
25 | $table->foreign('skill_id')->references('id')->on('skills')->onUpdate('CASCADE')->onDelete('CASCADE'); |
||
26 | }); |
||
39 |