From 11247061b5623140656e3ec0ee96b6566637a950 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 19 Aug 2015 08:31:20 -0400 Subject: Track channel creator in DB and show in channel intro message. --- store/sql_channel_store.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'store') 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() { -- cgit v1.2.3-1-g7c22