mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-13 12:31:13 +00:00
20 lines
317 B
Elixir
20 lines
317 B
Elixir
|
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
|