Code Duplication    Length = 25-27 lines in 2 locations

Database/Migrations/2014_09_27_181907_create_post_tag_table.php 1 location

@@ 6-32 (lines=27) @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreatePostTagTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('blog__post_tag', function (Blueprint $table) {
16
            $table->engine = 'InnoDB';
17
            $table->integer('tag_id');
18
            $table->integer('post_id');
19
            $table->timestamps();
20
        });
21
    }
22
23
    /**
24
     * Reverse the migrations.
25
     *
26
     * @return void
27
     */
28
    public function down()
29
    {
30
        Schema::drop('blog__post_tag');
31
    }
32
}
33

Database/Migrations/2015_05_29_180714_add_status_column_to_post_table.php 1 location

@@ 6-30 (lines=25) @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class AddStatusColumnToPostTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     * @return void
11
     */
12
    public function up()
13
    {
14
        Schema::table('blog__posts', function (Blueprint $table) {
15
            $table->engine = 'InnoDB';
16
            $table->integer('status')->after('category_id');
17
        });
18
    }
19
20
    /**
21
     * Reverse the migrations.
22
     * @return void
23
     */
24
    public function down()
25
    {
26
        Schema::table('blog__posts', function (Blueprint $table) {
27
            $table->dropColumn('status');
28
        });
29
    }
30
}
31