Code Duplication    Length = 11-12 lines in 2 locations

src/database/migrations/2017_11_08_145018_create_workflow_states_table.php 1 location

@@ 14-24 (lines=11) @@
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('workflow_states', function (Blueprint $table) {
17
            $table->increments('id')->comment("The id of state");
18
            $table->string('name',191)->unique()->comment("The name of state");
19
            $table->string('label',191)->comment("The label of state");
20
            $table->smallInteger('status')->default(0)->comment("The status of state");
21
            $table->timestamps();
22
      		$table->softDeletes();
23
        });
24
    }
25
26
    /**
27
     * Reverse the migrations.

src/database/migrations/2017_12_13_183509_create_workflows_table.php 1 location

@@ 9-20 (lines=12) @@
6
7
class CreateWorkflowsTable extends Migration {
8
9
	public function up()
10
	{
11
		Schema::create('workflows', function(Blueprint $table) {
12
			$table->increments('id');
13
			$table->timestamps();
14
			$table->softDeletes();
15
			$table->integer('content_id')->unsigned()->nullable()->index();
16
			$table->string('content_type', 100)->index();
17
			$table->string('name', 32)->unique();
18
			$table->string('label', 191)->index();
19
		});
20
	}
21
22
	public function down()
23
	{