summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-26 15:56:23 +0000
committerrinpatch <rinpatch@sdf.org>2020-05-26 15:56:23 +0000
commit5ad28ff405d0d5efc794e0e1f20091164ca82ea8 (patch)
tree2548bd1ec0836800a85d723a4972fb89d6dd68d5
parented08da9135e230ec67636a31f452c7ec31b9e79f (diff)
parentacba7043be4256976b4026e1b331c38842ec0e86 (diff)
Merge branch 'apps-index' into 'develop'
Migrations: Add index on client_id and client_secret for apps. See merge request pleroma/pleroma!2589
-rw-r--r--priv/repo/migrations/20200526144426_add_apps_indexes.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/repo/migrations/20200526144426_add_apps_indexes.exs b/priv/repo/migrations/20200526144426_add_apps_indexes.exs
new file mode 100644
index 000000000..5cb6a0473
--- /dev/null
+++ b/priv/repo/migrations/20200526144426_add_apps_indexes.exs
@@ -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