From e0bc27a3b4d77232ba2b7daa08ad91297361e26b Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 27 Aug 2015 16:01:17 -0700 Subject: Adding ability to upgrade postgres schema --- store/sql_channel_store.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'store/sql_channel_store.go') diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index d503d2225..d2e3943df 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -37,8 +37,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)", "") + s.CreateColumnIfNotExists("Channels", "CreatorId", "varchar(26)", "character varying(26)", "") } func (s SqlChannelStore) CreateIndexesIfNotExists() { -- cgit v1.2.3-1-g7c22