Fix: add mapping for the new mysqlRepl driver (#89551)

pull/89554/head
Kristin Laemmert 2 years ago committed by GitHub
parent 4be92ed111
commit ab5a079bcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/services/sqlstore/migrator/dialect.go

@ -6,9 +6,10 @@ import (
"strconv"
"strings"
"github.com/grafana/grafana/pkg/services/sqlstore/session"
"golang.org/x/exp/slices"
"xorm.io/xorm"
"github.com/grafana/grafana/pkg/services/sqlstore/session"
)
var (
@ -110,6 +111,7 @@ var supportedDialects = map[string]dialectFunc{
SQLite: NewSQLite3Dialect,
Postgres: NewPostgresDialect,
MySQL + "WithHooks": NewMysqlDialect,
MySQL + "ReplicaWithHooks": NewMysqlDialect,
SQLite + "WithHooks": NewSQLite3Dialect,
Postgres + "WithHooks": NewPostgresDialect,
}

Loading…
Cancel
Save