Removing supplier concept from the sql store (#16355)
* Removing supplier concept from the sql store * Removing other metions to supplier * Fixing gofmt * Fixing gofmt * Renaming NewSqlStore to New * Fixing tests Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
11248831b8
Коммит
a74fe05695
@@ -16,13 +16,13 @@ import (
|
||||
)
|
||||
|
||||
type SqlCommandWebhookStore struct {
|
||||
*SqlSupplier
|
||||
*SqlStore
|
||||
}
|
||||
|
||||
func newSqlCommandWebhookStore(sqlSupplier *SqlSupplier) store.CommandWebhookStore {
|
||||
s := &SqlCommandWebhookStore{sqlSupplier}
|
||||
func newSqlCommandWebhookStore(sqlStore *SqlStore) store.CommandWebhookStore {
|
||||
s := &SqlCommandWebhookStore{sqlStore}
|
||||
|
||||
for _, db := range sqlSupplier.GetAllConns() {
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
tablec := db.AddTableWithName(model.CommandWebhook{}, "CommandWebhooks").SetKeys(false, "Id")
|
||||
tablec.ColMap("Id").SetMaxSize(26)
|
||||
tablec.ColMap("CommandId").SetMaxSize(26)
|
||||
|
||||
Ссылка в новой задаче
Block a user