mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 03:24:04 +00:00
20 lines
415 B
Elixir
20 lines
415 B
Elixir
|
defmodule Pleroma.Repo.Migrations.CaseInsensivtivity do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def up do
|
||
|
execute ("create extension if not exists citext")
|
||
|
alter table(:users) do
|
||
|
modify :email, :citext
|
||
|
modify :nickname, :citext
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down do
|
||
|
alter table(:users) do
|
||
|
modify :email, :string
|
||
|
modify :nickname, :string
|
||
|
end
|
||
|
execute ("drop extension if exists citext")
|
||
|
end
|
||
|
end
|