Fix create/drop indexes in every migration (#377)
* Add `__eq__` method for `Index`instances * tests: add Index test case * refactor: compare index instances before set hash and eq func to class * fix: sort fields when generating index hash * docs: update changlog * fix style issue * refactor: use CustomIndex instead of postgres special HashIndex * Check tortoise version before patch Index * Add comment * Add comment for why > work --------- Co-authored-by: dbf <somnium@riseup.net>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
- Fix configuration file reading error when containing Chinese characters. (#286)
|
||||
- sqlite: failed to create/drop index. (#302)
|
||||
- PostgreSQL: Cannot drop constraint after deleting or rename FK on a model. (#378)
|
||||
- Fix create/drop indexes in every migration. (#377)
|
||||
- Sort m2m fields before comparing them with diff. (#271)
|
||||
|
||||
#### Changed
|
||||
|
||||
Reference in New Issue
Block a user