diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-08-19 14:15:01 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-08-19 14:15:01 -0400 |
commit | 65f1d0297e2d8221de5e00bc8ec28c965395b598 (patch) | |
tree | 6a231685d858d3580372ef657ba36a6b8f1107ff /store/sql_channel_store.go | |
parent | fbc2283220240b564eec1a0a0a037443a78f8036 (diff) | |
parent | 11247061b5623140656e3ec0ee96b6566637a950 (diff) | |
download | chat-65f1d0297e2d8221de5e00bc8ec28c965395b598.tar.gz chat-65f1d0297e2d8221de5e00bc8ec28c965395b598.tar.bz2 chat-65f1d0297e2d8221de5e00bc8ec28c965395b598.zip |
Merge pull request #406 from mattermost/mm-1281
MM-1281 Track channel creator in DB and show in channel intro message
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r-- | store/sql_channel_store.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index b8bf8b5ac..cf34f2847 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -24,6 +24,7 @@ func NewSqlChannelStore(sqlStore *SqlStore) ChannelStore { table.ColMap("Name").SetMaxSize(64) table.SetUniqueTogether("Name", "TeamId") table.ColMap("Description").SetMaxSize(1024) + table.ColMap("CreatorId").SetMaxSize(26) tablem := db.AddTableWithName(model.ChannelMember{}, "ChannelMembers").SetKeys(false, "ChannelId", "UserId") tablem.ColMap("ChannelId").SetMaxSize(26) @@ -37,6 +38,7 @@ func NewSqlChannelStore(sqlStore *SqlStore) ChannelStore { func (s SqlChannelStore) UpgradeSchemaIfNeeded() { s.CreateColumnIfNotExists("Channels", "ExtraUpdateAt", "TotalMsgCount", "bigint(20)", "0") + s.CreateColumnIfNotExists("Channels", "CreatorId", "ExtraUpdateAt", "varchar(26)", "") } func (s SqlChannelStore) CreateIndexesIfNotExists() { |