refactor: retire legacy tinode database routing
This commit is contained in:
@@ -248,6 +248,9 @@ func (a *adapter) Open(jsonconfig json.RawMessage) error {
|
||||
if a.dbName == "" {
|
||||
a.dbName = defaultDatabase
|
||||
}
|
||||
if strings.EqualFold(strings.TrimSpace(a.dbName), "tinode") {
|
||||
return errors.New("mysql database tinode is deprecated; use meeting_im")
|
||||
}
|
||||
config.Config.DBName = a.dbName
|
||||
a.baseConfig = &config
|
||||
a.tenantDBRouting = config.TenantDBRouting
|
||||
|
||||
Reference in New Issue
Block a user