-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert branch table name column to a new collation for mysql/mssql to support case sensitive because branch names are case sensitive #25623
Conversation
…o support case sensitive because branch names are case sensitive
} | ||
} else if setting.Database.Type.IsMSSQL() { | ||
return []*schemas.Collation{ | ||
{Name: "Latin1_General_CS_AS", Column: "name"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC SQLServer doesn't treat this collation as UTF-8 internally.
So it's better to add a test for it to make sure wide UTF-8 chars (eg: emoji) can be inserted and selected correctly.
Reference to #25909 added. |
Might be good to add a test of a repo migration when case-differing branch name, e.g. |
-> Make table column branch.name case sensitive #28633 |
replaced by #28633 |
Git branch names are case sensitive. Since #22743 introduced branch name in database and mysql/mssql default collation are case insensitive, this PR converts the column to a case sensitive collation.
Fixes: #25909