mobilizon/priv/repo/migrations/20180109150000_prerequites.exs
Thomas Citharel c4cfb081e7 Add docker-compose dev
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-25 16:42:04 +02:00

20 lines
371 B
Elixir

defmodule Eventos.Repo.Migrations.Prerequites do
use Ecto.Migration
def up do
execute("""
CREATE TYPE datetimetz AS (
dt timestamptz,
tz varchar
);
""")
execute("CREATE EXTENSION IF NOT EXISTS postgis")
end
def down do
execute("DROP TYPE IF EXISTS datetimetz;")
execute("DROP EXTENSION IF EXISTS postgis")
end
end