]> 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)
committerCarlos Eduardo Rivera <cerivera@fastmail.fm>
Thu, 28 Aug 2014 04:17:55 +0000 (23:17 -0500)
commitc5be980bdea6f096ede3b3752b5467041d1eadab
tree883fc6ae60275db3abeba900cf0d5acb18297e5a
parentd105d96bb236bf224a63b9bc8195c5faedc78e3e
- 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