Code Duplication    Length = 12-13 lines in 2 locations

src/database/migrations/2014_10_12_000000_create_features_table.php 1 location

@@ 14-25 (lines=12) @@
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('features', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('name')->index();
19
            $table->string('model');
20
            $table->string('label')->nullable();
21
            $table->text('description')->nullable();
22
            $table->boolean('auto_add')->default(false);
23
            $table->timestamps();
24
        });
25
    }
26
27
    /**
28
     * Reverse the migrations.

src/database/migrations/2014_10_12_000000_create_permissions_table.php 1 location

@@ 14-26 (lines=13) @@
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        if (config('multi-tenant.use_roles_and_permissions')) {
17
            Schema::create('multi_tenant_permissions', function (Blueprint $table) {
18
                $table->increments('id');
19
                $table->integer('feature_id')->index()->nullable();
20
                $table->string('name');
21
                $table->string('label')->nullable();
22
                $table->text('description')->nullable();
23
                $table->timestamps();
24
            });
25
        }
26
    }
27
28
    /**
29
     * Reverse the migrations.