1. Michael Bayer
  2. alembic
  3. Issues


Issue #48 wontfix

config access at the module level in migration scripts

Michael Bayer
repo owner created an issue

when script.py imports a script, "config" should somehow be availble, like "from alembic import get_config" or similar.

Comments (1)

  1. Michael Bayer reporter

    there was a bit of confusion here. There's access to config when the .mako template is generating - that we have now, indirectly, via the template_args argument to configure() along with revision_environment.

    The other part of this is when a completed script is imported, and I am less interested in that right now. The revision script can keep things like that local to upgrade()/downgrade() being called for now.

  2. Log in to comment