-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: guard clause (cherry picked from commit 6de41a7) # Conflicts: # frappe/database/mariadb/schema.py * fix: correct index re-syncing The implementation of syncing unique and non-unique index depended on index names which used to be different before because of that there's tendency to incorrectly identify index. This PR adds a separate util for checking if a column has index without relying on naming convention. It just goes and checks if there's any index with that column in it, hence far more reliable. (cherry picked from commit cbe4b59) # Conflicts: # frappe/database/mariadb/database.py # frappe/database/mariadb/schema.py * fix: index column should be first (cherry picked from commit da561c2) * chore: resolve conflict * chore: expand walrus * fix: py3.7 compat --------- Co-authored-by: Ankush Menat <ankush@frappe.io>
- Loading branch information
1 parent
1597a20
commit 6d69c05
Showing
2 changed files
with
47 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters