Remove ColMap (#19544)
Now that gorp is gone, this is no longer required. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
90245d4679
Коммит
56e889a3fc
@@ -23,15 +23,7 @@ type SqlSystemStore struct {
|
||||
}
|
||||
|
||||
func newSqlSystemStore(sqlStore *SqlStore) store.SystemStore {
|
||||
s := &SqlSystemStore{sqlStore}
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
table := db.AddTableWithName(model.System{}, "Systems").SetKeys(false, "Name")
|
||||
table.ColMap("Name").SetMaxSize(64)
|
||||
table.ColMap("Value").SetMaxSize(1024)
|
||||
}
|
||||
|
||||
return s
|
||||
return &SqlSystemStore{sqlStore}
|
||||
}
|
||||
|
||||
func (s SqlSystemStore) Save(system *model.System) error {
|
||||
|
||||
Ссылка в новой задаче
Block a user