]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- Added support for functional indexes when using the
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 27 Aug 2014 23:22:42 +0000 (19:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 27 Aug 2014 23:46:38 +0000 (19:46 -0400)
commit707f2d551877fbe911d317ddb0540087cd1cc6c9
treef956ee19ede9a2ed81f9fe880188eb935c9c3914
parent21274431ac8f4b17ddf2f0ba16ae0046ea344e85
- Added support for functional indexes when using the
:meth:`.Operations.create_index` directive.   Within the list of columns,
the SQLAlchemy ``text()`` construct can be sent, embedding a literal
SQL expression; the :meth:`.Operations.create_index` will perform some hackery
behind the scenes to get the :class:`.Index` construct to cooperate.
This works around some current limitations in :class:`.Index`
which should be resolved on the SQLAlchemy side at some point.
fixes #222
alembic/ddl/impl.py
alembic/operations.py
docs/build/changelog.rst
tests/test_op.py