mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
#4: Add indexes to track_files migration
This commit is contained in:
parent
a46882d928
commit
b7f2b62587
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue