mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-10-31 14:01:17 +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
|