]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- the original rationale for defaulting the user-defined namespace
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 21 Oct 2014 17:14:06 +0000 (13:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 21 Oct 2014 17:14:06 +0000 (13:14 -0400)
commit44d5eea91b62cca15b21052241601f4243ff48a3
tree28ace3e6d56176288c91180268338fc6d27ad0af
parentfd2a172df623650145d99bbe96b3f35bb3dd3ba3
- the original rationale for defaulting the user-defined namespace
to "sa." was to force users to deal with making sure their custom
types came from a fixed module somewhere.  However, it's not worth
defending this rationale.

The default value of the
:paramref:`.EnvironmentContext.configure.user_module_prefix`
parameter is **no longer the same as the SQLAlchemy prefix**.
When omitted, user-defined types will now use the ``__module__``
attribute of the type class itself when rendering in an
autogenerated module.

fixes #229
alembic/autogenerate/render.py
alembic/environment.py
docs/build/changelog.rst
docs/build/conf.py
docs/build/tutorial.rst
tests/test_autogen_render.py