Code Duplication    Length = 8-9 lines in 2 locations

updates/create_taxonomies_tables.php 2 locations

@@ 77-84 (lines=8) @@
74
        if (!Schema::hasTable(Tag::TABLE_NAME)) {
75
            Schema::create(
76
                Tag::TABLE_NAME,
77
                static function ($table) {
78
                    $table->engine = 'InnoDB';
79
80
                    $table->increments('id');
81
                    $table->string('name')->unique();
82
                    $table->string('slug')->unique();
83
                    $table->timestamps();
84
                }
85
            );
86
        }
87
@@ 112-120 (lines=9) @@
109
        if (!Schema::hasTable(Series::TABLE_NAME)) {
110
            Schema::create(
111
                Series::TABLE_NAME,
112
                static function ($table) {
113
                    $table->engine = 'InnoDB';
114
115
                    $table->increments('id');
116
                    $table->string('title')->unique();
117
                    $table->string('slug')->unique();
118
                    $table->string('description')->nullable();
119
                    $table->timestamps();
120
                }
121
            );
122
123
            Schema::table('rainlab_blog_posts', function ($table) {