| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('workflow_transitions', function (Blueprint $table) { |
||
| 17 | $table->increments('id')->comment("The id of workflow"); |
||
| 18 | $table->string('name',191)->unique()->comment("The name of workflow"); |
||
| 19 | $table->string('label',191)->comment("The label of workflow"); |
||
| 20 | $table->string('from',191)->nullable()->comment("The original state of workflow"); |
||
| 21 | $table->string('to',191)->nullable()->comment("The target state of workflow"); |
||
| 22 | $table->text('message')->comment("Message"); |
||
| 23 | $table->smallInteger('status')->default(0)->comment("The status of workflow"); |
||
| 24 | $table->timestamps(); |
||
| 25 | $table->softDeletes(); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 39 |