| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function up() |
||
| 17 | { |
||
| 18 | DB::transaction(function () { |
||
| 19 | Schema::create('cosmicradiotv_podcast_episodes', function (Blueprint $table) { |
||
| 20 | $table->engine = 'InnoDB'; |
||
| 21 | $table->increments('id'); |
||
| 22 | $table->unsignedInteger('show_id'); |
||
| 23 | $table->string('title'); |
||
| 24 | $table->string('slug'); |
||
| 25 | $table->text('summary')->nullable(); |
||
| 26 | $table->text('content')->nullable(); |
||
| 27 | $table->integer('length'); |
||
| 28 | $table->dateTime('release')->nullable(); |
||
| 29 | $table->boolean('published')->default(false); |
||
| 30 | $table->timestamps(); |
||
| 31 | |||
| 32 | $table->foreign('show_id')->references('id')->on('cosmicradiotv_podcast_shows') |
||
| 33 | ->onUpdate('cascade'); |
||
| 34 | $table->unique(['show_id', 'slug']); |
||
| 35 | }); |
||
| 36 | }); |
||
| 37 | } |
||
| 38 | |||
| 48 | } |