mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 00:58:54 +03:00
12 lines
236 B
Elixir
12 lines
236 B
Elixir
|
defmodule Plausible.Repo.Migrations.UseCitextForEmail do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
execute "CREATE EXTENSION IF NOT EXISTS citext;"
|
||
|
|
||
|
alter table(:users) do
|
||
|
modify :email, :citext, null: false
|
||
|
end
|
||
|
end
|
||
|
end
|