Skip to content

Instantly share code, notes, and snippets.

@tr00st
Created September 29, 2016 13:17
Show Gist options
  • Save tr00st/b9008b31bce83f183b9859b2275c89f2 to your computer and use it in GitHub Desktop.
Save tr00st/b9008b31bce83f183b9859b2275c89f2 to your computer and use it in GitHub Desktop.
PostGIS enabler migration
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = []
operations = [
migrations.RunSQL("CREATE EXTENSION IF NOT EXISTS postgis")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment