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
@@ -16,7 +16,7 @@ type SqlCommandWebhookStore struct {
|
||||
SqlStore
|
||||
}
|
||||
|
||||
func NewSqlCommandWebhookStore(sqlStore SqlStore) store.CommandWebhookStore {
|
||||
func newSqlCommandWebhookStore(sqlStore SqlStore) store.CommandWebhookStore {
|
||||
s := &SqlCommandWebhookStore{sqlStore}
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
@@ -32,7 +32,7 @@ func NewSqlCommandWebhookStore(sqlStore SqlStore) store.CommandWebhookStore {
|
||||
return s
|
||||
}
|
||||
|
||||
func (s SqlCommandWebhookStore) CreateIndexesIfNotExists() {
|
||||
func (s SqlCommandWebhookStore) createIndexesIfNotExists() {
|
||||
s.CreateIndexIfNotExists("idx_command_webhook_create_at", "CommandWebhooks", "CreateAt")
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user