mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.
This commit is contained in:
parent
18afd50a2b
commit
36f1f5cfb0
3 changed files with 18 additions and 48 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue