Merge branch 'apps-index' into 'develop'
authorrinpatch <rinpatch@sdf.org>
Tue, 26 May 2020 15:56:23 +0000 (15:56 +0000)
committerrinpatch <rinpatch@sdf.org>
Tue, 26 May 2020 15:56:23 +0000 (15:56 +0000)
Migrations: Add index on client_id and client_secret for apps.

See merge request pleroma/pleroma!2589

priv/repo/migrations/20200526144426_add_apps_indexes.exs [new file with mode: 0644]

diff --git a/priv/repo/migrations/20200526144426_add_apps_indexes.exs b/priv/repo/migrations/20200526144426_add_apps_indexes.exs
new file mode 100644 (file)
index 0000000..5cb6a04
--- /dev/null
@@ -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