Migrate to PostgreSQL and fix related issues
This commit is contained in:
parent
0b8fbea6c3
commit
a89a9776c3
17 changed files with 176 additions and 174 deletions
|
|
@ -17,7 +17,7 @@ func Roles(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
var roles []models.Role
|
||||
result := db.Order("name collate nocase asc").Find(&roles)
|
||||
result := db.Order("name asc").Find(&roles)
|
||||
|
||||
if result.Error != nil && !errors.Is(result.Error, gorm.ErrRecordNotFound) {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue