mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2025-07-03 19:33:15 +03:00
Fix for readonly connections in migrations
This commit is contained in:
parent
a9ff8fb8b6
commit
2126bc25da
|
@ -50,7 +50,7 @@ def migrate_app(app_label, db_alias, up_to=9999, database=None):
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
# Can't migrate such connection, just skip it
|
# Can't migrate such connection, just skip it
|
||||||
if config.DATABASES[db_alias].readonly:
|
if config.DATABASES[db_alias].get('readonly', False):
|
||||||
return
|
return
|
||||||
|
|
||||||
migrations_package = "%s.%s" % (app_label, config.MIGRATIONS_PACKAGE)
|
migrations_package = "%s.%s" % (app_label, config.MIGRATIONS_PACKAGE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user