@@ 7-37 (lines=31) @@ | ||
4 | use Illuminate\Database\Schema\Blueprint; |
|
5 | use Illuminate\Support\Facades\Schema; |
|
6 | ||
7 | class CreateModulesTable extends Migration |
|
8 | { |
|
9 | /** |
|
10 | * Run the migrations. |
|
11 | * |
|
12 | * @return void |
|
13 | */ |
|
14 | public function up() |
|
15 | { |
|
16 | Schema::create('fg_modules', function (Blueprint $table) { |
|
17 | $table->string('id')->index(); |
|
18 | $table->string('name'); |
|
19 | $table->string('repository'); |
|
20 | $table->string('implementation'); |
|
21 | $table->string('module_class'); |
|
22 | $table->text('description')->nullable(); |
|
23 | $table->boolean('active')->default(true); |
|
24 | $table->timestamps(); |
|
25 | }); |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * Reverse the migrations. |
|
30 | * |
|
31 | * @return void |
|
32 | */ |
|
33 | public function down() |
|
34 | { |
|
35 | Schema::dropIfExists('fg_modules'); |
|
36 | } |
|
37 | } |
|
38 |
@@ 7-36 (lines=30) @@ | ||
4 | use Illuminate\Database\Schema\Blueprint; |
|
5 | use Illuminate\Support\Facades\Schema; |
|
6 | ||
7 | class CreateTemplatesTable extends Migration |
|
8 | { |
|
9 | /** |
|
10 | * Run the migrations. |
|
11 | * |
|
12 | * @return void |
|
13 | */ |
|
14 | public function up() |
|
15 | { |
|
16 | Schema::create('fg_templates', function (Blueprint $table) { |
|
17 | $table->string('id')->index(); |
|
18 | $table->string('name')->unique(); |
|
19 | $table->string('branch')->unique(); |
|
20 | $table->string('repository'); |
|
21 | $table->text('description')->nullable(); |
|
22 | $table->boolean('active')->default(true); |
|
23 | $table->timestamps(); |
|
24 | }); |
|
25 | } |
|
26 | ||
27 | /** |
|
28 | * Reverse the migrations. |
|
29 | * |
|
30 | * @return void |
|
31 | */ |
|
32 | public function down() |
|
33 | { |
|
34 | Schema::dropIfExists('fg_templates'); |
|
35 | } |
|
36 | } |
|
37 |