mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2025-05-28 01:33:07 +03:00
change operator imports
This commit is contained in:
parent
9ff1da8b15
commit
06f5929c92
|
@ -8,8 +8,6 @@ from django.db import DEFAULT_DB_ALIAS as DJANGO_DEFAULT_DB_ALIAS
|
|||
from django.db.models.signals import post_migrate
|
||||
from django.dispatch import receiver
|
||||
|
||||
# In order to support all operations import here
|
||||
from infi.clickhouse_orm.migrations import * # noqa F401, F403
|
||||
|
||||
from infi.clickhouse_orm.database import ServerError, DatabaseException
|
||||
from infi.clickhouse_orm.fields import StringField, DateField
|
||||
|
@ -20,6 +18,7 @@ from .clickhouse_models import ClickHouseModel
|
|||
from .configuration import config
|
||||
from .database import connections, Database
|
||||
from .utils import lazy_class_import, module_exists
|
||||
from .migration_operators import *
|
||||
|
||||
|
||||
class Migration:
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
from django_clickhouse import migrations, migration_operators
|
||||
from django_clickhouse import migrations
|
||||
from tests.clickhouse_models import ClickHouseTestModel, ClickHouseCollapseTestModel
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
operations = [
|
||||
migration_operators.CreateTable(ClickHouseTestModel),
|
||||
migration_operators.CreateTable(ClickHouseCollapseTestModel)
|
||||
migrations.CreateTable(ClickHouseTestModel),
|
||||
migrations.CreateTable(ClickHouseCollapseTestModel)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user