mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-10-30 15:07:51 +01:00
Renaming a column onto the name of another existing column silently collapsed the two into one and discarded the source column's entire dataset, because the new CREATE TABLE column list was built with dict(new_column_pairs) and the earlier entry was overwritten. Detect duplicate target names and raise TransformError before any SQL is executed, leaving the table untouched. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| cli.py | ||
| create_table_parser.py | ||
| db.py | ||
| hookspecs.py | ||
| migrations.py | ||
| plugins.py | ||
| py.typed | ||
| recipes.py | ||
| utils.py | ||