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_team_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_team_store.go')
-rw-r--r-- | store/sql_team_store.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/store/sql_team_store.go b/store/sql_team_store.go index 7b0be0540..2784f8630 100644 --- a/store/sql_team_store.go +++ b/store/sql_team_store.go @@ -5,7 +5,6 @@ package store import ( "github.com/mattermost/platform/model" - "github.com/mattermost/platform/utils" ) type SqlTeamStore struct { @@ -29,15 +28,6 @@ func NewSqlTeamStore(sqlStore *SqlStore) TeamStore { } func (s SqlTeamStore) UpgradeSchemaIfNeeded() { - defaultValue := "0" - if utils.Cfg.TeamSettings.AllowValetDefault { - defaultValue = "1" - } - s.CreateColumnIfNotExists("Teams", "AllowValet", "AllowedDomains", "tinyint(1)", defaultValue) - if !s.DoesColumnExist("Teams", "DisplayName") { - s.RenameColumnIfExists("Teams", "Name", "DisplayName", "varchar(64)") - s.RenameColumnIfExists("Teams", "Domain", "Name", "varchar(64)") - } } func (s SqlTeamStore) CreateIndexesIfNotExists() { |