mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-22 00:56:37 +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
|
||||
"""
|
||||
# Can't migrate such connection, just skip it
|
||||
if config.DATABASES[db_alias].readonly:
|
||||
if config.DATABASES[db_alias].get('readonly', False):
|
||||
return
|
||||
|
||||
migrations_package = "%s.%s" % (app_label, config.MIGRATIONS_PACKAGE)
|
||||
|
|
Loading…
Reference in New Issue
Block a user