mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
services/sqlstore: Order results in UserSearch by username/email (#23328)
* services/sqlstore: Order results in UserSearch by username/email * Add index (login,email) on user table
This commit is contained in:
@@ -68,7 +68,6 @@ func (ss *SqlStore) Init() error {
|
||||
ss.readConfig()
|
||||
|
||||
engine, err := ss.getEngine()
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("Fail to connect to database: %v", err)
|
||||
}
|
||||
@@ -232,7 +231,6 @@ func (ss *SqlStore) buildConnectionString() (string, error) {
|
||||
|
||||
func (ss *SqlStore) getEngine() (*xorm.Engine, error) {
|
||||
connectionString, err := ss.buildConnectionString()
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user