From 7415d16b4f560017834fa9c94eee445b2a8f12f1 Mon Sep 17 00:00:00 2001 From: M1ha Date: Tue, 18 Dec 2018 14:51:12 +0500 Subject: [PATCH] Added logging of migration process --- src/django_clickhouse/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_clickhouse/migrations.py b/src/django_clickhouse/migrations.py index f1f507b..237c274 100644 --- a/src/django_clickhouse/migrations.py +++ b/src/django_clickhouse/migrations.py @@ -59,7 +59,7 @@ def migrate_app(app_label, db_alias, up_to=9999, database=None): unapplied_migrations = set(modules.keys()) - applied_migrations for name in sorted(unapplied_migrations): - logger.info('Applying ClickHouse migration %s for app %s in database %s' % (name, app_label, db_alias)) + print('Applying ClickHouse migration %s for app %s in database %s' % (name, app_label, db_alias)) migration = modules[name].Migration() migration.apply(db_alias, database=database)