1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-06 18:35:23 +02:00

Partially enable MSSQL case-sensitive collation support (#29238)

Follow #28662

(cherry picked from commit 29a8c8de779924694fadad80b31cc855dd62c0f2)
This commit is contained in:
wxiaoguang 2024-03-08 11:19:35 +08:00 committed by Earl Warren
parent 53f6f62ad4
commit abb0294996
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 17 additions and 24 deletions

View file

@ -232,7 +232,7 @@ func UpdateBoard(ctx context.Context, board *Board) error {
func (p *Project) GetBoards(ctx context.Context) (BoardList, error) {
boards := make([]*Board, 0, 5)
if err := db.GetEngine(ctx).Where("project_id=? AND `default`=?", p.ID, false).OrderBy("Sorting").Find(&boards); err != nil {
if err := db.GetEngine(ctx).Where("project_id=? AND `default`=?", p.ID, false).OrderBy("sorting").Find(&boards); err != nil {
return nil, err
}