diff --git a/priv/repo/migrations/20230529193453_add_citext.exs b/priv/repo/migrations/20230529193453_add_citext.exs index 371df8d..7fb6a2a 100644 --- a/priv/repo/migrations/20230529193453_add_citext.exs +++ b/priv/repo/migrations/20230529193453_add_citext.exs @@ -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