- fix some sphinx link stuff

This commit is contained in:
Mike Bayer 2017-07-06 11:59:04 -04:00
parent 6a043d10d8
commit 3b71acca23
4 changed files with 10 additions and 7 deletions

View File

@ -226,7 +226,7 @@ def upgrade(config, revision, sql=False, tag=None):
:param sql: if True, use ``--sql`` mode
:param tag: an arbitrary "tag" that can be intercepted by custom
``env.py`` scripts via the :class:`.EnvironmentContext.get_tag_argument`
``env.py`` scripts via the :meth:`.EnvironmentContext.get_tag_argument`
method.
"""
@ -264,7 +264,7 @@ def downgrade(config, revision, sql=False, tag=None):
:param sql: if True, use ``--sql`` mode
:param tag: an arbitrary "tag" that can be intercepted by custom
``env.py`` scripts via the :class:`.EnvironmentContext.get_tag_argument`
``env.py`` scripts via the :meth:`.EnvironmentContext.get_tag_argument`
method.
"""

View File

@ -149,6 +149,7 @@ within the module level of the ``env.py`` script is sufficient.
.. _operation_objects:
.. _alembic.operations.ops.toplevel:
Built-in Operation Objects
==============================
@ -169,7 +170,5 @@ autogenerate system renders new migration scripts.
The built-in operation objects are listed below.
.. _alembic.operations.ops.toplevel:
.. automodule:: alembic.operations.ops
:members:

View File

@ -10,7 +10,8 @@ Changelog
.. change::
:tags: feature, runtime
Added a new callback hook :paramref:`.EnvironmentContext.on_version_apply`,
Added a new callback hook
:paramref:`.EnvironmentContext.configure.on_version_apply`,
which allows user-defined code to be invoked each time an individual
upgrade, downgrade, or stamp operation proceeds against a database.
Pull request courtesy John Passaro.

7
docs/build/ops.rst vendored
View File

@ -39,5 +39,8 @@ circumstances they are called from an actual migration script, which
itself would be invoked by the :meth:`.EnvironmentContext.run_migrations`
method.
.. automodule:: alembic.operations
:members: Operations, BatchOperations
.. module:: alembic.operations
.. autoclass:: Operations
.. autoclass:: BatchOperations