blob: 96569abfacfbf7a2208b1057eae416c850fdee5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from django.db import connection, migrations
if connection.features.supports_raster:
from django.contrib.postgres.operations import CreateExtension
class Migration(migrations.Migration):
operations = [
CreateExtension("postgis_raster"),
]
else:
class Migration(migrations.Migration):
operations = []
|