]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Change (broken) declarative base link into (working) ref
authorMark Amery <markamery@btinternet.com>
Sun, 7 Jan 2018 12:13:15 +0000 (12:13 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Feb 2018 15:53:03 +0000 (10:53 -0500)
(cherry picked from commit 7dfa693afdba75dfe5094cf39b2c74958ef3153e)

docs/build/autogenerate.rst

index a5bd5d1c9e46c7b72b4c4042498c4b6abd80d687..a15a7f9c8b0e4c885a2bb791ee30232b2051f963 100644 (file)
@@ -9,7 +9,7 @@ review and modify these by hand as needed, then proceed normally.
 
 To use autogenerate, we first need to modify our ``env.py`` so that it gets access
 to a table metadata object that contains the target.  Suppose our application
-has a `declarative base <http://www.sqlalchemy.org/docs/orm/extensions/declarative.html#synopsis>`_
+has a :ref:`declarative base <sqla:declarative_toplevel>`
 in ``myapp.mymodel``.  This base contains a :class:`~sqlalchemy.schema.MetaData` object which
 contains :class:`~sqlalchemy.schema.Table` objects defining our database.  We make sure this
 is loaded in ``env.py`` and then passed to :meth:`.EnvironmentContext.configure` via the