summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-alembic_1.8.0.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-alembic: upgrade 1.8.0 -> 1.8.1zhengruoqin2022-07-241-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: ========== [bug] [sqlite] -------------- Fixed bug where the SQLite implementation of Operations.rename_table() would render an explicit schema name for both the old and new table name, which while is the standard ALTER syntax, is not accepted by SQLite’s syntax which doesn’t support a rename across schemas. In particular, the syntax issue would prevent batch mode from working for SQLite databases that made use of attached databases (which are treated as “schemas” in SQLAlchemy). [bug] [batch] ------------- Added an error raise for the condition where Operations.batch_alter_table() is used in --sql mode, where the operation requires table reflection, as is the case when running against SQLite without giving it a fixed Table object. Previously the operation would fail with an internal error. To get a “move and copy” batch operation as a SQL script without connecting to a database, a Table object should be passed to the Operations.batch_alter_table.copy_from parameter so that reflection may be skipped. Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-alembic: upgrade 1.7.7 -> 1.8.0zhengruoqin2022-06-301-0/+19
Changelog: =========== *Alembic 1.8 now supports Python 3.7 and above. *The "Pylons" environment template has been removed as of Alembic 1.8. This template was based on the very old pre-Pyramid Pylons web framework which has been long superseded by Pyramid. Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>