Making private some sqlstore methods (#13895)
* Making private some sqlstore methods * Calling for create indexes on missing stores Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
aec606500f
Коммит
2a5d30f8f3
@@ -14,7 +14,7 @@ type SqlCommandStore struct {
|
||||
SqlStore
|
||||
}
|
||||
|
||||
func NewSqlCommandStore(sqlStore SqlStore) store.CommandStore {
|
||||
func newSqlCommandStore(sqlStore SqlStore) store.CommandStore {
|
||||
s := &SqlCommandStore{sqlStore}
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
@@ -37,7 +37,7 @@ func NewSqlCommandStore(sqlStore SqlStore) store.CommandStore {
|
||||
return s
|
||||
}
|
||||
|
||||
func (s SqlCommandStore) CreateIndexesIfNotExists() {
|
||||
func (s SqlCommandStore) createIndexesIfNotExists() {
|
||||
s.CreateIndexIfNotExists("idx_command_team_id", "Commands", "TeamId")
|
||||
s.CreateIndexIfNotExists("idx_command_update_at", "Commands", "UpdateAt")
|
||||
s.CreateIndexIfNotExists("idx_command_create_at", "Commands", "CreateAt")
|
||||
|
||||
Ссылка в новой задаче
Block a user