| @@ 7-36 (lines=30) @@ | ||
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | use Illuminate\Database\Migrations\Migration; |
|
| 6 | ||
| 7 | class CreateTransitionStatesTable extends Migration |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * Run the migrations. |
|
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('transition_states', function (Blueprint $table) { |
|
| 17 | $table->increments('id'); |
|
| 18 | $table->uuid('uuid')->unique(); |
|
| 19 | $table->string('current_state'); |
|
| 20 | $table->integer('content_id'); |
|
| 21 | $table->integer('history_id')->unsigned()->nullable(); |
|
| 22 | $table->softDeletes(); |
|
| 23 | $table->timestamps(); |
|
| 24 | }); |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Reverse the migrations. |
|
| 29 | * |
|
| 30 | * @return void |
|
| 31 | */ |
|
| 32 | public function down() |
|
| 33 | { |
|
| 34 | Schema::dropIfExists('transition_states'); |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||
| @@ 7-36 (lines=30) @@ | ||
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | use Illuminate\Database\Migrations\Migration; |
|
| 6 | ||
| 7 | class CreateWorkflowTypesTable extends Migration |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * Run the migrations. |
|
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('workflow_types', function (Blueprint $table) { |
|
| 17 | $table->increments('id'); |
|
| 18 | $table->uuid('uuid')->unique(); |
|
| 19 | $table->integer('workflow_id'); |
|
| 20 | $table->string('workflow_type'); |
|
| 21 | $table->string('content_type'); |
|
| 22 | $table->softDeletes(); |
|
| 23 | $table->timestamps(); |
|
| 24 | }); |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Reverse the migrations. |
|
| 29 | * |
|
| 30 | * @return void |
|
| 31 | */ |
|
| 32 | public function down() |
|
| 33 | { |
|
| 34 | Schema::dropIfExists('workflow_types'); |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||