2014-03-15 01:34:49 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2014-11-05 00:27:35 +08:00
|
|
|
from django.db import migrations
|
2014-03-15 01:34:49 +08:00
|
|
|
|
2015-04-05 00:10:26 +08:00
|
|
|
try:
|
|
|
|
from django.contrib.postgres.operations import (
|
|
|
|
HStoreExtension, UnaccentExtension,
|
|
|
|
)
|
|
|
|
except ImportError:
|
|
|
|
from django.test import mock
|
|
|
|
HStoreExtension = mock.Mock()
|
|
|
|
UnaccentExtension = mock.Mock()
|
|
|
|
|
2014-03-15 01:34:49 +08:00
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
HStoreExtension(),
|
2014-09-06 04:53:11 +08:00
|
|
|
UnaccentExtension(),
|
2014-03-15 01:34:49 +08:00
|
|
|
]
|