diff options
author | Elizabeth (Lizzy) Hunt <elizabeth.hunt@simponic.xyz> | 2023-05-29 16:59:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-29 16:59:09 -0700 |
commit | 516d5ebe76ced7532fbe6c438ca5692d96acd757 (patch) | |
tree | f916671ea90b5ee90d5a772fd052b471d28db822 /priv | |
parent | 7b1ef08f7dd6c582895081870205c2c811b64cf1 (diff) | |
download | chessh-516d5ebe76ced7532fbe6c438ca5692d96acd757.tar.gz chessh-516d5ebe76ced7532fbe6c438ca5692d96acd757.zip |
fix citext migration issues
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20230529193453_add_citext.exs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |