[MM-39999] Increase key length in plugin KV store to 150 (#19002)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b836edba40
Коммит
34c4e543f9
@@ -29,7 +29,7 @@ func newSqlPluginStore(sqlStore *SqlStore) store.PluginStore {
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
table := db.AddTableWithName(model.PluginKeyValue{}, "PluginKeyValueStore").SetKeys(false, "PluginId", "Key")
|
||||
table.ColMap("PluginId").SetMaxSize(190)
|
||||
table.ColMap("Key").SetMaxSize(50)
|
||||
table.ColMap("Key").SetMaxSize(150)
|
||||
table.ColMap("Value").SetMaxSize(8192)
|
||||
}
|
||||
|
||||
|
||||
@@ -1426,6 +1426,8 @@ func upgradeDatabaseToVersion630(sqlStore *SqlStore) {
|
||||
sqlStore.CreateColumnIfNotExists("Schemes", "DefaultRunAdminRole", "VARCHAR(64)", "VARCHAR(64)", "")
|
||||
sqlStore.CreateColumnIfNotExists("Schemes", "DefaultRunMemberRole", "VARCHAR(64)", "VARCHAR(64)", "")
|
||||
|
||||
sqlStore.AlterColumnTypeIfExists("PluginKeyValueStore", "PKey", "VARCHAR(150)", "VARCHAR(150)")
|
||||
|
||||
// saveSchemaVersion(sqlStore, Version630)
|
||||
// }
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user