mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.
This commit is contained in:
@@ -141,9 +141,6 @@ class Migration(migrations.Migration):
|
||||
('when', models.DateTimeField(null=True, default=None)),
|
||||
]
|
||||
),
|
||||
]
|
||||
|
||||
pg_92_operations = [
|
||||
migrations.CreateModel(
|
||||
name='RangesModel',
|
||||
fields=[
|
||||
@@ -199,8 +196,6 @@ class Migration(migrations.Migration):
|
||||
except AttributeError:
|
||||
pass # We are probably not on PostgreSQL
|
||||
else:
|
||||
if PG_VERSION >= 90200:
|
||||
self.operations = self.operations + self.pg_92_operations
|
||||
if PG_VERSION >= 90400:
|
||||
self.operations = self.operations + self.pg_94_operations
|
||||
return super(Migration, self).apply(project_state, schema_editor, collect_sql)
|
||||
|
||||
Reference in New Issue
Block a user