Code Duplication    Length = 4-6 lines in 2 locations

updates/create_taxonomies_tables.php 1 location

@@ 123-126 (lines=4) @@
120
                }
121
            );
122
123
            Schema::table('rainlab_blog_posts', function ($table) {
124
                $table->integer(Series::TABLE_NAME . '_id')->unsigned()->nullable()->default(null);
125
                $table->foreign(Series::TABLE_NAME . '_id')->references('id')->on(Series::TABLE_NAME)->onDelete('cascade');
126
            });
127
        }
128
    }
129
}

updates/create_post_type_table.php 1 location

@@ 116-121 (lines=6) @@
113
                }
114
            );
115
116
            Schema::table('rainlab_blog_posts', function ($table) {
117
                $table->integer(PostType::TABLE_NAME . '_id')->unsigned()->nullable()->default(null);
118
                $table->foreign(PostType::TABLE_NAME . '_id')->references('id')->on(PostType::TABLE_NAME)->onDelete('cascade');
119
120
                $table->text(PostType::TABLE_NAME. '_attributes')->nullable();
121
            });
122
123
            DB::table(PostType::TABLE_NAME)->insert(
124
                [