summaryrefslogtreecommitdiffstats
path: root/store/sql_channel_store.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-26 16:18:28 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-27 12:46:30 -0400
commit09b38404fa9aadd1b359863024f7def0f34de823 (patch)
treec4027f76a9607c823b25e568c944d21b57f34071 /store/sql_channel_store.go
parent95c464b167a6b1324bb829271b89e88900e278a2 (diff)
downloadchat-09b38404fa9aadd1b359863024f7def0f34de823.tar.gz
chat-09b38404fa9aadd1b359863024f7def0f34de823.tar.bz2
chat-09b38404fa9aadd1b359863024f7def0f34de823.zip
Renamed Channel.Description to Channel.Header on the server
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r--store/sql_channel_store.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go
index 07e8e0151..cb67d66a1 100644
--- a/store/sql_channel_store.go
+++ b/store/sql_channel_store.go
@@ -25,7 +25,7 @@ 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("CreatorId").SetMaxSize(26)
tablem := db.AddTableWithName(model.ChannelMember{}, "ChannelMembers").SetKeys(false, "ChannelId", "UserId")
@@ -83,6 +83,10 @@ func (s SqlChannelStore) UpgradeSchemaIfNeeded() {
s.RemoveColumnIfExists("ChannelMembers", "NotifyLevel")
}
+
+ // BEGIN REMOVE AFTER 1.2.0
+ s.RenameColumnIfExists("Channels", "Description", "Header", "varchar(1024)")
+ // END REMOVE AFTER 1.2.0
}
func (s SqlChannelStore) CreateIndexesIfNotExists() {