fix citext migration issues

This commit is contained in:
Elizabeth Hunt 2023-05-29 16:59:09 -07:00 committed by GitHub
parent 7b1ef08f7d
commit 516d5ebe76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,10 @@ defmodule Chessh.Repo.Migrations.AddCitext do
use Ecto.Migration
def up do
execute("CREATE EXTENSION citext")
execute("CREATE EXTENSION IF NOT EXISTS citext")
end
def down do
execute("DROP EXTENSION citext")
execute("DROP EXTENSION IF EXISTS citext")
end
end