From a49e7363c01abeb168ea9431c5f7777ca967c546 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Mon, 28 Dec 2015 03:22:51 +0100 Subject: [PATCH] Reverts the extensions migration changes in tests. --- cachalot/tests/migrations/0001_initial.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cachalot/tests/migrations/0001_initial.py b/cachalot/tests/migrations/0001_initial.py index fc55ba5..9e65bd7 100644 --- a/cachalot/tests/migrations/0001_initial.py +++ b/cachalot/tests/migrations/0001_initial.py @@ -56,16 +56,16 @@ if django_version[:2] >= (1, 8): from django.contrib.postgres.fields import ( ArrayField, HStoreField, IntegerRangeField, FloatRangeField, DateRangeField, DateTimeRangeField) - from django.contrib.postgres.operations import ( - HStoreExtension, UnaccentExtension) Migration.operations.extend(( migrations.AddField('Test', 'duration', models.DurationField(null=True, blank=True)), migrations.AddField('Test', 'uuid', models.UUIDField(null=True, blank=True)), - HStoreExtension(), - UnaccentExtension(), + migrations.RunSQL('CREATE EXTENSION hstore;', + hints={'extension': 'hstore'}), + migrations.RunSQL('CREATE EXTENSION unaccent;', + hints={'extension': 'unaccent'}), migrations.CreateModel( name='PostgresModel', fields=[