mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2025-05-29 10:13:07 +03:00
16 lines
438 B
Python
16 lines
438 B
Python
|
|
from django_clickhouse import migrations
|
|
from tests.clickhouse_models import ClickHouseTestModel, ClickHouseCollapseTestModel
|
|
|
|
|
|
def python_exec(database):
|
|
pass
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
operations = [
|
|
migrations.CreateTable(ClickHouseTestModel),
|
|
migrations.CreateTable(ClickHouseCollapseTestModel),
|
|
migrations.RunPython(python_exec, hints={'force_migrate_on_databases': ['default']})
|
|
]
|