pixelfed/database/migrations/2022_12_18_012352_add_statu...

37 wiersze
834 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('media', function (Blueprint $table) {
$table->index('status_id');
$table->index('replicated_at');
$table->index('version');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('media', function (Blueprint $table) {
$table->dropIndex('media_status_id_index');
$table->dropIndex('media_replicated_at_index');
$table->dropIndex('media_version_index');
});
}
};