mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2025-02-19 20:30:32 +03:00
Fix
This commit is contained in:
parent
e8161ee7ce
commit
382655224b
|
@ -49,6 +49,7 @@ def migrate_app(app_label, db_alias, up_to=9999, database=None):
|
||||||
:param database: Sometimes I want to pass db object directly for testing purposes
|
:param database: Sometimes I want to pass db object directly for testing purposes
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
|
database = database or connections[db_alias]
|
||||||
migrations_package = "%s.%s" % (app_label, config.MIGRATIONS_PACKAGE)
|
migrations_package = "%s.%s" % (app_label, config.MIGRATIONS_PACKAGE)
|
||||||
|
|
||||||
if module_exists(migrations_package):
|
if module_exists(migrations_package):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user