diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-18 08:50:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 08:50:01 -0500 |
commit | dd6fac50f2741ecc8e7e07c42a3e94b37720bd5e (patch) | |
tree | dac3eea7eb0fbe6b4cef0cb7e90da9c11ca58993 /store/sql_team_store.go | |
parent | 976296cd52533ff565407e55e872339cc312a0cf (diff) | |
download | chat-dd6fac50f2741ecc8e7e07c42a3e94b37720bd5e.tar.gz chat-dd6fac50f2741ecc8e7e07c42a3e94b37720bd5e.tar.bz2 chat-dd6fac50f2741ecc8e7e07c42a3e94b37720bd5e.zip |
Removed index on Teams.Description column (#5095)
* Removed index on Teams.Description column
* Fixed RemoveIndexIfExists when running with MySQL
* Fixed RemoveIndexIfExists when running Postgres and added unit tests
Diffstat (limited to 'store/sql_team_store.go')
-rw-r--r-- | store/sql_team_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_team_store.go b/store/sql_team_store.go index 023ce8a5a..85a2d995e 100644 --- a/store/sql_team_store.go +++ b/store/sql_team_store.go @@ -44,7 +44,7 @@ func NewSqlTeamStore(sqlStore *SqlStore) TeamStore { func (s SqlTeamStore) CreateIndexesIfNotExists() { s.CreateIndexIfNotExists("idx_teams_name", "Teams", "Name") - s.CreateIndexIfNotExists("idx_teams_description", "Teams", "Description") + s.RemoveIndexIfExists("idx_teams_description", "Teams") s.CreateIndexIfNotExists("idx_teams_invite_id", "Teams", "InviteId") s.CreateIndexIfNotExists("idx_teams_update_at", "Teams", "UpdateAt") s.CreateIndexIfNotExists("idx_teams_create_at", "Teams", "CreateAt") |