summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20200925065249_make_user_ids_ci.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-28 18:15:31 +0300
committerrinpatch <rinpatch@sdf.org>2020-09-28 18:34:03 +0300
commit7bc561127da6489862d3b7ea49ebc853c0267729 (patch)
tree1c5abeec6a6d7abef0a47df76bf609ba1e066bd1 /priv/repo/migrations/20200925065249_make_user_ids_ci.exs
parent35157f5dc845483e9d65236b87461f15c77ad634 (diff)
downloadpleroma-7bc561127da6489862d3b7ea49ebc853c0267729.tar.gz
pleroma-7bc561127da6489862d3b7ea49ebc853c0267729.zip
Revert citext user URI migration
URI paths are not actually case-insesitive, which caused migration issues on a number of databases. Closes #2188
Diffstat (limited to 'priv/repo/migrations/20200925065249_make_user_ids_ci.exs')
-rw-r--r--priv/repo/migrations/20200925065249_make_user_ids_ci.exs18
1 files changed, 4 insertions, 14 deletions
diff --git a/priv/repo/migrations/20200925065249_make_user_ids_ci.exs b/priv/repo/migrations/20200925065249_make_user_ids_ci.exs
index b7305f137..8ea0f2cf1 100644
--- a/priv/repo/migrations/20200925065249_make_user_ids_ci.exs
+++ b/priv/repo/migrations/20200925065249_make_user_ids_ci.exs
@@ -1,19 +1,9 @@
defmodule Pleroma.Repo.Migrations.MakeUserIdsCI do
use Ecto.Migration
- def up do
- alter table(:users) do
- modify(:uri, :citext)
- end
-
- create(unique_index(:users, :uri))
- end
-
- def don do
- drop(unique_index(:users, :uri))
-
- alter table(:users) do
- modify(:uri, :text)
- end
+ def change do
+ # Migration retired, see
+ # https://git.pleroma.social/pleroma/pleroma/-/issues/2188
+ :noop
end
end