aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-30 13:37:46 +0000
committerrinpatch <rinpatch@sdf.org>2020-09-30 13:37:46 +0000
commit2566467782e410aa910de9b55aece8c4ffd74ad1 (patch)
treeeffec95502007d8ad37165a9749938c9795d7073 /priv
parent7f83b35a9dea7181b57d9b975742233813fa3a8b (diff)
parent1ae39441e6d516f8f1a0dd3ed47de9d8427477c5 (diff)
downloadpleroma-2566467782e410aa910de9b55aece8c4ffd74ad1.tar.gz
Merge branch '2201-i-hate-this' into 'develop'
User search: Once again, change uri handling. Closes #2201 See merge request pleroma/pleroma!3048
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20200928145912_revert_citext_change.exs2
-rw-r--r--priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs8
2 files changed, 9 insertions, 1 deletions
diff --git a/priv/repo/migrations/20200928145912_revert_citext_change.exs b/priv/repo/migrations/20200928145912_revert_citext_change.exs
index ab232f607..685a98533 100644
--- a/priv/repo/migrations/20200928145912_revert_citext_change.exs
+++ b/priv/repo/migrations/20200928145912_revert_citext_change.exs
@@ -6,6 +6,6 @@ defmodule Pleroma.Repo.Migrations.RevertCitextChange do
modify(:uri, :text)
end
- create_if_not_exists(unique_index(:users, :uri))
+ # create_if_not_exists(unique_index(:users, :uri))
end
end
diff --git a/priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs b/priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs
new file mode 100644
index 000000000..816c6526e
--- /dev/null
+++ b/priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs
@@ -0,0 +1,8 @@
+defmodule Pleroma.Repo.Migrations.UserURIsIndexPartThree do
+ use Ecto.Migration
+
+ def change do
+ drop_if_exists(unique_index(:users, :uri))
+ create_if_not_exists(index(:users, :uri))
+ end
+end