Added logging of migration process

This commit is contained in:
M1ha 2018-12-18 14:47:56 +05:00
parent b7972fb079
commit 2d84e5da04

View File

@ -59,6 +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))
migration = modules[name].Migration()
migration.apply(db_alias, database=database)