From cbebc254528113dbae71f2014a2db46a291fe2a2 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Mon, 26 Oct 2015 19:33:11 +0000 Subject: [PATCH] Add cache-related columns to track_files table --- ...6_192855_update_track_files_with_cache.php | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 database/migrations/2015_10_26_192855_update_track_files_with_cache.php 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'); + }); + } +}