diff --git a/database/migrations/2015_10_26_192855_update_track_files_with_cache.php b/database/migrations/2015_10_26_192855_update_track_files_with_cache.php new file mode 100644 index 00000000..c0a51e75 --- /dev/null +++ b/database/migrations/2015_10_26_192855_update_track_files_with_cache.php @@ -0,0 +1,53 @@ +. + */ + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class UpdateTrackFilesWithCache extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('track_files', function (Blueprint $table) { + $table->boolean('is_cacheable')->default(false); + $table->dateTime('expiration')->nullable(); + $table->boolean('in_progress')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('track_files', function (Blueprint $table) { + $table->dropColumn('is_cacheable'); + $table->dropColumn('expiration'); + $table->dropColumn('in_progress'); + }); + } +}