diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-08-28 08:26:33 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-08-28 08:26:33 -0400 |
commit | d107b392a6309a41eac6cd7d07d720a21968eb56 (patch) | |
tree | 3be26fed1cb5fd22d344d54ba99e93b80b5d6c93 /store/sql_team_store.go | |
parent | 2bc6451e39a4080832e0b6250f536972c42b1f48 (diff) | |
parent | f96513809f2f1ff64d8f0919c67408438713ba83 (diff) | |
download | chat-d107b392a6309a41eac6cd7d07d720a21968eb56.tar.gz chat-d107b392a6309a41eac6cd7d07d720a21968eb56.tar.bz2 chat-d107b392a6309a41eac6cd7d07d720a21968eb56.zip |
Merge pull request #511 from mattermost/MM-1698
MM-1698 Fixes upgrade db from 0.6 for postgres
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() { |