| @@ 7-31 (lines=25) @@ | ||
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | use Illuminate\Support\Facades\Schema; |
|
| 6 | ||
| 7 | class CreateStudiesTable extends Migration |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * Run the migrations. |
|
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('studies', function (Blueprint $table) { |
|
| 17 | $table->increments('id'); |
|
| 18 | $table->timestamps(); |
|
| 19 | }); |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * Reverse the migrations. |
|
| 24 | * |
|
| 25 | * @return void |
|
| 26 | */ |
|
| 27 | public function down() |
|
| 28 | { |
|
| 29 | Schema::dropIfExists('studies'); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 7-31 (lines=25) @@ | ||
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | use Illuminate\Support\Facades\Schema; |
|
| 6 | ||
| 7 | class CreateCoursesTable extends Migration |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * Run the migrations. |
|
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('courses', function (Blueprint $table) { |
|
| 17 | $table->increments('id'); |
|
| 18 | $table->timestamps(); |
|
| 19 | }); |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * Reverse the migrations. |
|
| 24 | * |
|
| 25 | * @return void |
|
| 26 | */ |
|
| 27 | public function down() |
|
| 28 | { |
|
| 29 | Schema::dropIfExists('courses'); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 7-31 (lines=25) @@ | ||
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | use Illuminate\Support\Facades\Schema; |
|
| 6 | ||
| 7 | class CreateBrandsTable extends Migration |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * Run the migrations. |
|
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('brands', function (Blueprint $table) { |
|
| 17 | $table->increments('id'); |
|
| 18 | $table->timestamps(); |
|
| 19 | }); |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * Reverse the migrations. |
|
| 24 | * |
|
| 25 | * @return void |
|
| 26 | */ |
|
| 27 | public function down() |
|
| 28 | { |
|
| 29 | Schema::dropIfExists('brands'); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||