-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[model] Force 'utf8_unicode_ci' collation on MySQL tables
MySQL considers chars like 'β' and 'b' or 'ı' and 'i' the same, when some collation values are set (i.e utf8_general_ci). This can raise integrity errors when Sorting Hat tries to add similar identities with these pairs of characters. For instance, if the identity: ('scm', 'βart', 'bart@example.com', 'bart) is stored in the database, the insertion of: ('scm', 'bart', 'bart@example.com', 'bart) will raise an error, even when these identities have different UUIDs. Forcing MySQL to use 'utf8_unicode_ci' fixes this error, allowing to insert both identities.
- Loading branch information
Showing
4 changed files
with
59 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 | ||
__version__ = "0.3.1.dev1" | ||
__version__ = "0.3.1.dev2" |
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
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