1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.

This commit is contained in:
Tim Graham
2016-02-12 09:59:13 -05:00
parent 18afd50a2b
commit 36f1f5cfb0
3 changed files with 18 additions and 48 deletions

View File

@@ -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)