Merge pull request #2375 from mattermost/PLT-2117
PLT-2117 chaning multiple rrs
Этот коммит содержится в:
@@ -2427,6 +2427,10 @@
|
|||||||
"id": "store.sql.schema_upgrade_attempt.warn",
|
"id": "store.sql.schema_upgrade_attempt.warn",
|
||||||
"translation": "Attempting to upgrade the database schema version to %v"
|
"translation": "Attempting to upgrade the database schema version to %v"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "store.sql.read_replicas_not_licensed.critical",
|
||||||
|
"translation": "More than 1 read replica functionality disabled by current license. Please contact your system administrator about upgrading your enterprise license."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "store.sql.schema_version.critical",
|
"id": "store.sql.schema_version.critical",
|
||||||
"translation": "The database schema version of %v cannot be upgraded. You must not skip a version."
|
"translation": "The database schema version of %v cannot be upgraded. You must not skip a version."
|
||||||
|
|||||||
@@ -72,6 +72,12 @@ func main() {
|
|||||||
loadLicense()
|
loadLicense()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !utils.IsLicensed && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 {
|
||||||
|
l4g.Critical(utils.T("store.sql.read_replicas_not_licensed.critical"))
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
panic(fmt.Sprintf(utils.T("store.sql.read_replicas_not_licensed.critical")))
|
||||||
|
}
|
||||||
|
|
||||||
if flagRunCmds {
|
if flagRunCmds {
|
||||||
runCmds()
|
runCmds()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user