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
@@ -18,13 +18,13 @@ import (
|
||||
)
|
||||
|
||||
type SqlSystemStore struct {
|
||||
*SqlSupplier
|
||||
*SqlStore
|
||||
}
|
||||
|
||||
func newSqlSystemStore(sqlSupplier *SqlSupplier) store.SystemStore {
|
||||
s := &SqlSystemStore{sqlSupplier}
|
||||
func newSqlSystemStore(sqlStore *SqlStore) store.SystemStore {
|
||||
s := &SqlSystemStore{sqlStore}
|
||||
|
||||
for _, db := range sqlSupplier.GetAllConns() {
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
table := db.AddTableWithName(model.System{}, "Systems").SetKeys(false, "Name")
|
||||
table.ColMap("Name").SetMaxSize(64)
|
||||
table.ColMap("Value").SetMaxSize(1024)
|
||||
|
||||
Ссылка в новой задаче
Block a user