1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

Migrations: Add index on client_id and client_secret for apps.

Greatly speeds up app lookup.
This commit is contained in:
lain 2020-05-26 16:46:57 +02:00 committed by rinpatch
parent c29ad60c20
commit eabf9317b5

View file

@ -0,0 +1,7 @@
defmodule Pleroma.Repo.Migrations.AddAppsIndexes do
use Ecto.Migration
def change do
create(index(:apps, [:client_id, :client_secret]))
end
end