pixelfed/database/migrations/2022_12_05_064156_add_key_i...

35 wiersze
742 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('profiles', function (Blueprint $table) {
$table->index('key_id');
$table->index('remote_url');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('profiles', function (Blueprint $table) {
$table->dropIndex('profiles_key_id_index');
$table->dropIndex('profiles_remote_url_index');
});
}
};