diff --git a/alembic.ini b/alembic.ini index c8a2e9a..92647a9 100644 --- a/alembic.ini +++ b/alembic.ini @@ -36,7 +36,7 @@ script_location = alembic # output_encoding = utf-8 sqlalchemy.url = postgresql:///?service=%(PGSERVICE)s -version_table_schema = qwc_config +version_table_schema = %(QWC_CONFIG_SCHEMA)s # Logging configuration diff --git a/alembic/env.py b/alembic/env.py index 89ebac3..60082cb 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -11,6 +11,7 @@ # Set variables for config section = config.config_ini_section config.set_section_option(section, "PGSERVICE", os.environ.get("PGSERVICE")) +config.set_section_option(section, "QWC_CONFIG_SCHEMA", os.environ.get("QWC_CONFIG_SCHEMA", "qwc_config")) # Interpret the config file for Python logging. # This line sets up loggers basically.