summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/plugin_store.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-12-05 18:19:33 -0500
committerChristopher Speller <crspeller@gmail.com>2017-12-05 15:19:33 -0800
commit7cefef6d21fa76de0683d2fe9ff56a6e28816628 (patch)
tree3aff5d34a44bb65cfefa5e69084d2bd484d1dd51 /store/sqlstore/plugin_store.go
parent150de584c348d6317199fd619f0c144464b8f755 (diff)
downloadchat-7cefef6d21fa76de0683d2fe9ff56a6e28816628.tar.gz
chat-7cefef6d21fa76de0683d2fe9ff56a6e28816628.tar.bz2
chat-7cefef6d21fa76de0683d2fe9ff56a6e28816628.zip
Hash key for plugin store and limit id length (#7933)
Diffstat (limited to 'store/sqlstore/plugin_store.go')
-rw-r--r--store/sqlstore/plugin_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sqlstore/plugin_store.go b/store/sqlstore/plugin_store.go
index a4b49cb27..23b355f48 100644
--- a/store/sqlstore/plugin_store.go
+++ b/store/sqlstore/plugin_store.go
@@ -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)
}