diff options
author | lain <lain@soykaf.club> | 2020-08-05 09:08:50 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-05 09:08:50 +0000 |
commit | 474aba984f2184d4f028c56f687d1a12f69d5c47 (patch) | |
tree | 0407edb9294937e374694e5b62dfedc415d5cc35 /priv | |
parent | e8d10237da47f81bcb3837ac8b5d1b7cc7bf540c (diff) | |
parent | 184742af5eed2c48ba8518f1e114cbe0655ad467 (diff) |
Merge branch 'unique-app-id' into 'develop'
Add unique index for apps.client_id, fixes #2022
Closes #2022
See merge request pleroma/pleroma!2844
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20200804183107_add_unique_index_to_app_client_id.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/repo/migrations/20200804183107_add_unique_index_to_app_client_id.exs b/priv/repo/migrations/20200804183107_add_unique_index_to_app_client_id.exs new file mode 100644 index 000000000..83de18096 --- /dev/null +++ b/priv/repo/migrations/20200804183107_add_unique_index_to_app_client_id.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.AddUniqueIndexToAppClientId do + use Ecto.Migration + + def change do + create(unique_index(:apps, [:client_id])) + end +end |