mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-10 13:44:44 +00:00
Fixes migration on Django 1.7.
This commit is contained in:
parent
bd16cba2ae
commit
8fc89836d0
1 changed files with 7 additions and 7 deletions
|
|
@ -15,10 +15,6 @@ class Migration(migrations.Migration):
|
|||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunSQL('CREATE EXTENSION hstore;',
|
||||
hints={'extension': 'hstore'}),
|
||||
migrations.RunSQL('CREATE EXTENSION unaccent;',
|
||||
hints={'extension': 'unaccent'}),
|
||||
migrations.CreateModel(
|
||||
name='Test',
|
||||
fields=[
|
||||
|
|
@ -58,7 +54,11 @@ if django_version >= (1, 8):
|
|||
ArrayField, HStoreField,
|
||||
IntegerRangeField, FloatRangeField, DateRangeField, DateTimeRangeField)
|
||||
|
||||
Migration.operations.append(
|
||||
Migration.operations.extend((
|
||||
migrations.RunSQL('CREATE EXTENSION hstore;',
|
||||
hints={'extension': 'hstore'}),
|
||||
migrations.RunSQL('CREATE EXTENSION unaccent;',
|
||||
hints={'extension': 'unaccent'}),
|
||||
migrations.CreateModel(
|
||||
name='PostgresModel',
|
||||
fields=[
|
||||
|
|
@ -73,5 +73,5 @@ if django_version >= (1, 8):
|
|||
('date_range', DateRangeField(null=True, blank=True)),
|
||||
('datetime_range', DateTimeRangeField(null=True, blank=True)),
|
||||
],
|
||||
)
|
||||
)
|
||||
),
|
||||
))
|
||||
|
|
|
|||
Loading…
Reference in a new issue