Commits

Christian Blume committed 514d4b5 Draft

- added option 'version_table_schema' to version_table in __init__ of MigrationContext -> makes it possible to use 'version_table_schema' option in context.configure() of env.py

  • Participants
  • Parent commits 47c81d0

Comments (0)

Files changed (2)

alembic/migration.py

                                             False)
 
         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))
+            Column('version_num', String(32), nullable=False),
+            schema=version_table_schema)
 
         self._start_from_rev = opts.get("starting_rev")
         self.impl = ddl.DefaultImpl.get_by_dialect(dialect)(

alembic/script.py

                 'month': create_date.month,
                 'day': create_date.day,
                 'hour': create_date.hour,
-                'minute': create_date.month,
+                'minute': create_date.minute,
                 'second': create_date.second
             }
         )