Fix KeyError when deleting a field with unqiue=True (#365)

* Fix KeyError when deleting a field with unqiue=True

* refactor: rename `old_data_unique` to `is_unique_field`

* Add testcases for remove unique field

---------

Co-authored-by: gongchangku <gongchangku@anban.tech>
Co-authored-by: Waket Zheng <waketzheng@gmail.com>
This commit is contained in:
gck123
2024-12-03 10:16:44 +08:00
committed by GitHub
parent 103470f4c1
commit c0fd3ec63c
4 changed files with 62 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
- Correct the click import. (#360)
- Improve CLI help text and output. (#355)
- Fix mysql drop unique index raises OperationalError. (#346)
- Fix KeyError when deleting a field with unqiue=True. (#364)
**Upgrade note:**
1. Use column name as unique key name for mysql
2. Drop support for Python3.7