mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #34851 -- Dropped support for PostgreSQL 12 and PostGIS 2.5.
This commit is contained in:
@@ -3,16 +3,10 @@ from django.db import connection, migrations
|
||||
if connection.features.supports_raster:
|
||||
from django.contrib.postgres.operations import CreateExtension
|
||||
|
||||
pg_version = connection.ops.postgis_version_tuple()
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
# PostGIS 3+ requires postgis_raster extension.
|
||||
if pg_version[1:] >= (3,):
|
||||
operations = [
|
||||
CreateExtension("postgis_raster"),
|
||||
]
|
||||
else:
|
||||
operations = []
|
||||
operations = [
|
||||
CreateExtension("postgis_raster"),
|
||||
]
|
||||
|
||||
else:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user