| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class ModifyReferencesTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::table('micro_references', function (Blueprint $table) { |
||
| 17 | $table->dropForeign(['experience_level_id']); |
||
| 18 | $table->dropIndex(['experience_level_id']); |
||
| 19 | |||
| 20 | $table->dropColumn('experience_level_id'); |
||
| 21 | $table->dropColumn('observed_from_date'); |
||
| 22 | $table->dropColumn('observed_until_date'); |
||
| 23 | $table->renameColumn('story', 'description'); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Reverse the migrations. |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | public function down() |
||
| 43 | }); |
||
| 44 | } |
||
| 46 |