]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
ensure rename_column works on SQLite
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Nov 2024 16:58:53 +0000 (11:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Nov 2024 17:05:29 +0000 (12:05 -0500)
commitcc582bd05fb96785e2460c1fc9a92460b7101946
tree35f866fc332ab22eb799faffe6f3d7b8113789c9
parente09ef30d879daa00895098d0fca2a2a58065292b
ensure rename_column works on SQLite

Modified SQLite's dialect to render "ALTER TABLE <t> RENAME COLUMN" when
:meth:`.Operations.alter_column` is used with a straight rename, supporting
SQLite's recently added column rename feature.

References: #1576
Change-Id: Ia84c4fda144c2767393e4748ced60479016f2c91
alembic/ddl/sqlite.py
docs/build/unreleased/1576.rst [new file with mode: 0644]
tests/test_sqlite.py