diff options
author | Corey Hulen <corey@hulen.com> | 2015-10-28 14:44:02 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-10-28 14:44:02 -0700 |
commit | 89f67cd11dbb71d42a8809976715d6df86d46c95 (patch) | |
tree | 3e3c50d16a6dea22f5270ab61255c975e3eb6147 /store/sql_channel_store.go | |
parent | 9312272234c9bb41741ac174fb4b19c73426dce0 (diff) | |
parent | 019bf6a7fed85138a6a3be6ef70fbb994be49abe (diff) | |
download | chat-89f67cd11dbb71d42a8809976715d6df86d46c95.tar.gz chat-89f67cd11dbb71d42a8809976715d6df86d46c95.tar.bz2 chat-89f67cd11dbb71d42a8809976715d6df86d46c95.zip |
Merge pull request #1199 from hmhealey/plt600
PLT-600 Renamed channel description to channel header and added channel purpose field
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r-- | store/sql_channel_store.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index 80fe75130..14896c0a0 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -25,7 +25,8 @@ func NewSqlChannelStore(sqlStore *SqlStore) ChannelStore { table.ColMap("DisplayName").SetMaxSize(64) table.ColMap("Name").SetMaxSize(64) table.SetUniqueTogether("Name", "TeamId") - table.ColMap("Description").SetMaxSize(1024) + table.ColMap("Header").SetMaxSize(1024) + table.ColMap("Purpose").SetMaxSize(128) table.ColMap("CreatorId").SetMaxSize(26) tablem := db.AddTableWithName(model.ChannelMember{}, "ChannelMembers").SetKeys(false, "ChannelId", "UserId") @@ -83,6 +84,11 @@ func (s SqlChannelStore) UpgradeSchemaIfNeeded() { s.RemoveColumnIfExists("ChannelMembers", "NotifyLevel") } + + // BEGIN REMOVE AFTER 1.2.0 + s.RenameColumnIfExists("Channels", "Description", "Header", "varchar(1024)") + s.CreateColumnIfNotExists("Channels", "Purpose", "varchar(1024)", "varchar(1024)", "") + // END REMOVE AFTER 1.2.0 } func (s SqlChannelStore) CreateIndexesIfNotExists() { |