diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-30 10:56:20 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-04-04 09:45:02 -0400 |
commit | 441156b91e9f9bac6b5592616551e2920c4cb33b (patch) | |
tree | 64e0c2e8a1329a0b761883fd47c3b588d11a69af /store/sql_command_store.go | |
parent | 785553384fe96027b0e9274b6ccc8623092eda70 (diff) | |
download | chat-441156b91e9f9bac6b5592616551e2920c4cb33b.tar.gz chat-441156b91e9f9bac6b5592616551e2920c4cb33b.tar.bz2 chat-441156b91e9f9bac6b5592616551e2920c4cb33b.zip |
Added DisplayName and Description fields to both types of webhooks and slash commands
Diffstat (limited to 'store/sql_command_store.go')
-rw-r--r-- | store/sql_command_store.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_command_store.go b/store/sql_command_store.go index 074a6e588..02b3a0cc5 100644 --- a/store/sql_command_store.go +++ b/store/sql_command_store.go @@ -28,12 +28,14 @@ func NewSqlCommandStore(sqlStore *SqlStore) CommandStore { tableo.ColMap("AutoCompleteDesc").SetMaxSize(1024) tableo.ColMap("AutoCompleteHint").SetMaxSize(1024) tableo.ColMap("DisplayName").SetMaxSize(64) + tableo.ColMap("Description").SetMaxSize(128) } return s } func (s SqlCommandStore) UpgradeSchemaIfNeeded() { + s.CreateColumnIfNotExists("Commands", "Description", "varchar(128)", "varchar(128)", "") } func (s SqlCommandStore) CreateIndexesIfNotExists() { |