Code Duplication    Length = 32-33 lines in 2 locations

src/database/migrations/2018_02_25_113950_create_table_state.php 1 location

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

src/database/migrations/2018_02_28_074505_create_table_transition.php 1 location

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