]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
qualify sqlite batch add column for dynamic defaults
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Aug 2021 15:48:19 +0000 (11:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Aug 2021 16:23:13 +0000 (12:23 -0400)
commit3110acba13c22c7d8a934c30dca650b1537a50e3
tree78811937b9524be873cfa8e1b5333cce7247eeb0
parent8917b3532da6dabc07187adf597573624b32fe3c
qualify sqlite batch add column for dynamic defaults

Batch "auto" mode will now select for "recreate" if the ``add_column()``
operation is used on SQLite, and the column itself meets the criteria for
SQLite where ADD COLUMN is not allowed, in this case a functional or
parenthesized SQL expression or a ``Computed`` (i.e. generated) column.

Change-Id: Ie948b4b8ad8dc698b458403831e47bac4ad45b8a
Fixes: #883
alembic/ddl/sqlite.py
docs/build/unreleased/883.rst [new file with mode: 0644]
tests/test_batch.py