diff options
author | =Corey Hulen <corey@hulen.com> | 2015-08-27 16:01:17 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-08-27 16:01:17 -0700 |
commit | e0bc27a3b4d77232ba2b7daa08ad91297361e26b (patch) | |
tree | 1e472a55e55b72bdb2cf6429859c474f25ddb045 /store/sql_channel_store.go | |
parent | bcde2adde7171146cb95264ded88d4bdbcf80e04 (diff) | |
download | chat-e0bc27a3b4d77232ba2b7daa08ad91297361e26b.tar.gz chat-e0bc27a3b4d77232ba2b7daa08ad91297361e26b.tar.bz2 chat-e0bc27a3b4d77232ba2b7daa08ad91297361e26b.zip |
Adding ability to upgrade postgres schema
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r-- | store/sql_channel_store.go | 3 |
1 files changed, 1 insertions, 2 deletions
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() { |