Hash key for plugin store and limit id length (#7933)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
150de584c3
Коммит
7cefef6d21
@@ -21,8 +21,8 @@ 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(100)
|
||||
table.ColMap("Key").SetMaxSize(100)
|
||||
table.ColMap("PluginId").SetMaxSize(190)
|
||||
table.ColMap("Key").SetMaxSize(50)
|
||||
table.ColMap("Value").SetMaxSize(8192)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user