Removing unnecesary SqlStore interface (#16057)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5b1a716e2c
Коммит
d274cf8afa
@@ -16,13 +16,13 @@ import (
|
||||
)
|
||||
|
||||
type SqlCommandWebhookStore struct {
|
||||
SqlStore
|
||||
*SqlSupplier
|
||||
}
|
||||
|
||||
func newSqlCommandWebhookStore(sqlStore SqlStore) store.CommandWebhookStore {
|
||||
s := &SqlCommandWebhookStore{sqlStore}
|
||||
func newSqlCommandWebhookStore(sqlSupplier *SqlSupplier) store.CommandWebhookStore {
|
||||
s := &SqlCommandWebhookStore{sqlSupplier}
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
for _, db := range sqlSupplier.GetAllConns() {
|
||||
tablec := db.AddTableWithName(model.CommandWebhook{}, "CommandWebhooks").SetKeys(false, "Id")
|
||||
tablec.ColMap("Id").SetMaxSize(26)
|
||||
tablec.ColMap("CommandId").SetMaxSize(26)
|
||||
|
||||
Ссылка в новой задаче
Block a user