Remove ColMap (#19544)
Now that gorp is gone, this is no longer required. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
90245d4679
Коммит
56e889a3fc
@@ -24,16 +24,7 @@ type SqlPluginStore struct {
|
||||
}
|
||||
|
||||
func newSqlPluginStore(sqlStore *SqlStore) store.PluginStore {
|
||||
s := &SqlPluginStore{sqlStore}
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
table := db.AddTableWithName(model.PluginKeyValue{}, "PluginKeyValueStore").SetKeys(false, "PluginId", "Key")
|
||||
table.ColMap("PluginId").SetMaxSize(190)
|
||||
table.ColMap("Key").SetMaxSize(150)
|
||||
table.ColMap("Value").SetMaxSize(8192)
|
||||
}
|
||||
|
||||
return s
|
||||
return &SqlPluginStore{sqlStore}
|
||||
}
|
||||
|
||||
func (ps SqlPluginStore) SaveOrUpdate(kv *model.PluginKeyValue) (*model.PluginKeyValue, error) {
|
||||
|
||||
Ссылка в новой задаче
Block a user