#4: Add indexes to track_files migration

This commit is contained in:
Kelvin Zhang 2015-11-09 13:16:03 +00:00 committed by Peter Deltchev
parent a46882d928
commit b7f2b62587

View file

@ -31,10 +31,9 @@ class UpdateTrackFilesWithCache extends Migration
public function up()
{
Schema::table('track_files', function (Blueprint $table) {
$table->boolean('is_cacheable')->default(false);
$table->index('is_cacheable');
$table->boolean('is_cacheable')->default(false)->index();
$table->boolean('is_in_progress')->default(false);
$table->dateTime('expires_at')->nullable();
$table->dateTime('expires_at')->nullable()->index();
});
}