summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-12-01 23:20:11 -0800
committerGitHub <noreply@github.com>2017-12-01 23:20:11 -0800
commit81c1fad4d4fcc48eebc61905fe4a6226350edd88 (patch)
tree528bbaa725b26b6b3743ac16adff5cb44a81d8d9 /model
parentc3af8785734803b6199a28249537ef3e47fe4caa (diff)
downloadchat-81c1fad4d4fcc48eebc61905fe4a6226350edd88.tar.gz
chat-81c1fad4d4fcc48eebc61905fe4a6226350edd88.tar.bz2
chat-81c1fad4d4fcc48eebc61905fe4a6226350edd88.zip
Revert "Hash key for plugin store table and limit plugin ID length (#7915)" (#7931)
This reverts commit c3af8785734803b6199a28249537ef3e47fe4caa.
Diffstat (limited to 'model')
-rw-r--r--model/manifest.go5
-rw-r--r--model/plugin_key_value.go4
2 files changed, 4 insertions, 5 deletions
diff --git a/model/manifest.go b/model/manifest.go
index 7d28f6dc7..121d3e0d2 100644
--- a/model/manifest.go
+++ b/model/manifest.go
@@ -102,9 +102,8 @@ type PluginSettingsSchema struct {
// help_text: When true, an extra thing will be enabled!
// default: false
type Manifest struct {
- // The id is a globally unique identifier that represents your plugin. Ids are limited
- // to 200 characters. Reverse-DNS notation using a name you control is a good option.
- // For example, "com.mycompany.myplugin".
+ // The id is a globally unique identifier that represents your plugin. Reverse-DNS notation
+ // using a name you control is a good option. For example, "com.mycompany.myplugin".
Id string `json:"id" yaml:"id"`
// The name to be displayed for the plugin.
diff --git a/model/plugin_key_value.go b/model/plugin_key_value.go
index 093422c82..ceb216c2a 100644
--- a/model/plugin_key_value.go
+++ b/model/plugin_key_value.go
@@ -9,8 +9,8 @@ import (
)
const (
- KEY_VALUE_PLUGIN_ID_MAX_RUNES = 200
- KEY_VALUE_KEY_MAX_RUNES = 50
+ KEY_VALUE_PLUGIN_ID_MAX_RUNES = 100
+ KEY_VALUE_KEY_MAX_RUNES = 100
)
type PluginKeyValue struct {