Introduce an option in context.configure() to specify a particular schema name for the alembic_version table

Issue #76 resolved
Christian Blume
created an issue

In init of MigrationContext I would suggest the following:

version_table = opts.get('version_table', 'alembic_version')
version_table_schema = opts.get('version_table_schema', None)
self._version = Table(
    version_table, MetaData(),
    Column('version_num', String(32), nullable=False),

This would solve this issue quite easily. What do you think?

Comments (8)

  1. Log in to comment