mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 10:19:59 +00:00
559c889f1b
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
19 lines
373 B
Elixir
19 lines
373 B
Elixir
defmodule Mobilizon.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
|