Code Duplication    Length = 9-12 lines in 3 locations

updates/create_releases_table.php 1 location

@@ 18-27 (lines=10) @@
15
    public function up()
16
    {
17
        DB::transaction(function() {
18
            Schema::create('cosmicradiotv_podcast_release_types', function (Blueprint $table) {
19
                $table->engine = 'InnoDB';
20
                $table->increments('id');
21
                $table->string('name');
22
                $table->string('slug');
23
                $table->string('type');
24
                $table->string('filetype');
25
26
                $table->unique('slug');
27
            });
28
29
            Schema::create('cosmicradiotv_podcast_releases', function (Blueprint $table) {
30
                $table->engine = 'InnoDB';

updates/create_shows_table.php 1 location

@@ 18-29 (lines=12) @@
15
     */
16
    public function up()
17
    {
18
        DB::transaction(function () {
19
            Schema::create('cosmicradiotv_podcast_shows', function (Blueprint $table) {
20
                $table->engine = 'InnoDB';
21
                $table->increments('id');
22
                $table->string('name');
23
                $table->string('slug');
24
                $table->text('description')->nullable();
25
                $table->timestamps();
26
27
                $table->unique('slug');
28
            });
29
        });
30
    }
31
32
    /**

updates/create_tags_table.php 1 location

@@ 16-24 (lines=9) @@
13
    public function up()
14
    {
15
        DB::transaction(function () {
16
            Schema::create('cosmicradiotv_podcast_tags', function (Blueprint $table) {
17
                $table->engine = 'InnoDB';
18
                $table->increments('id');
19
                $table->string('name');
20
                $table->string('slug');
21
                $table->timestamps();
22
23
                $table->unique('slug');
24
            });
25
26
            Schema::create('cosmicradiotv_podcast_episodes_tags', function (Blueprint $table) {
27
                $table->unsignedInteger('episode_id');