database/migrations/2016_12_16_215030_create_specialities_table.php 1 location
|
@@ 28-33 (lines=6) @@
|
| 25 |
|
$table->timestamps(); |
| 26 |
|
$table->unique(['user_id', 'speciality_id']); |
| 27 |
|
}); |
| 28 |
|
Schema::create('speciality_submodule', function (Blueprint $table) { |
| 29 |
|
$table->integer('speciality_id')->unsigned(); |
| 30 |
|
$table->integer('submodule_id')->unsigned(); |
| 31 |
|
$table->timestamps(); |
| 32 |
|
$table->unique(['speciality_id', 'submodule_id']); |
| 33 |
|
}); |
| 34 |
|
} |
| 35 |
|
/** |
| 36 |
|
* Reverse the migrations. |
database/migrations/2016_12_16_220133_create_modules_table.php 1 location
|
@@ 27-32 (lines=6) @@
|
| 24 |
|
$table->timestamps(); |
| 25 |
|
$table->unique(array('name', 'order','study_id')); |
| 26 |
|
}); |
| 27 |
|
Schema::create('course_module', function (Blueprint $table) { |
| 28 |
|
$table->integer('course_id')->unsigned(); |
| 29 |
|
$table->integer('module_id')->unsigned(); |
| 30 |
|
$table->timestamps(); |
| 31 |
|
$table->unique(['course_id', 'module_id']); |
| 32 |
|
}); |
| 33 |
|
} |
| 34 |
|
/** |
| 35 |
|
* Reverse the migrations. |