defmodule CartosnapApp.Repo.Migrations.EnablePostgis do
@moduledoc """
Photos and trips have geometry columns. The postgis/postgis image enables
the extension only in the database it was started with, so a database
made afterwards (the test one) needs it asked for. Dated before the first
geometry column; a no-op where PostGIS is already on.
"""
use Ecto.Migration
def up, do: execute("CREATE EXTENSION IF NOT EXISTS postgis")
def down, do: :ok
end
neiam
/cartosnap_ex
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
471 B · text
History
44bc4f7