mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Adding upgrade calls for db
This commit is contained in:
@@ -31,6 +31,9 @@ func NewSqlTeamStore(sqlStore *SqlStore) TeamStore {
|
||||
func (s SqlTeamStore) UpgradeSchemaIfNeeded() {
|
||||
// REMOVE AFTER 1.2 SHIP see PLT-828
|
||||
s.RemoveColumnIfExists("Teams", "AllowValet")
|
||||
s.CreateColumnIfNotExists("Teams", "InviteId", "varchar(26)", "varchar(26)", "")
|
||||
s.CreateColumnIfNotExists("Teams", "AllowOpenInvite", "tinyint(1)", "boolean", "0")
|
||||
s.CreateColumnIfNotExists("Teams", "AllowTeamListing", "tinyint(1)", "boolean", "0")
|
||||
}
|
||||
|
||||
func (s SqlTeamStore) CreateIndexesIfNotExists() {
|
||||
|
||||
Reference in New Issue
Block a user