| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function down() |
||
| 33 | { |
||
| 34 | Schema::table('micro_references', function (Blueprint $table) { |
||
| 35 | $table->integer('experience_level_id')->unsigned()->nullable()->index(); |
||
| 36 | $table->date('observed_from_date')->nullable(); |
||
| 37 | $table->date('observed_until_date')->nullable(); |
||
| 38 | $table->renameColumn('description', 'story'); |
||
| 39 | }); |
||
| 40 | |||
| 41 | Schema::table('micro_references', function (Blueprint $table) { |
||
| 42 | $table->foreign('experience_level_id')->references('id')->on('experience_levels')->onUpdate('CASCADE')->onDelete('NO ACTION'); |
||
| 43 | }); |
||
| 46 |