--- /dev/null
+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
+ end
+end
insert(:user, %{
nickname: "no_relation",
ap_id: "https://lain.com/users/lain",
- uri: "https://lain.com/@lain"
+ uri: "https://lain.com/@Lain"
})
_user = insert(:user, %{nickname: "com_user"})