[v9.0.x] Auth: Case insensitive ids duplicate usagestats (#51240)
* merged and backport to 9.0 * implement the missing method GetDialect for sqlStore * Add back mockstore missing methods
This commit is contained in:
@@ -157,6 +157,11 @@ func (ss *SQLStore) Quote(value string) string {
|
||||
return ss.engine.Quote(value)
|
||||
}
|
||||
|
||||
// GetDialect retrieves the dialect of the current SQL engine
|
||||
func (ss *SQLStore) GetDialect() migrator.Dialect {
|
||||
return ss.Dialect
|
||||
}
|
||||
|
||||
func (ss *SQLStore) ensureMainOrgAndAdminUser() error {
|
||||
ctx := context.Background()
|
||||
err := ss.WithTransactionalDbSession(ctx, func(sess *DBSession) error {
|
||||
|
||||
Reference in New Issue
Block a user