1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-24 17:01:45 +00:00
mobilizon/priv/repo/migrations/20180109150000_prerequites.exs

20 lines
371 B
Elixir
Raw Normal View History

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