Migrate Channelstore categories to sqlx (#19506)
Remove db:"-" tags from model.Channel as well. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
57eafbc6ca
Коммит
2d986ef920
@@ -5,11 +5,11 @@ package sqlstore
|
||||
|
||||
import (
|
||||
sq "github.com/Masterminds/squirrel"
|
||||
"github.com/mattermost/gorp"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/mattermost/mattermost-server/v6/model"
|
||||
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
||||
"github.com/mattermost/mattermost-server/v6/store"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
type SqlPreferenceStore struct {
|
||||
@@ -67,7 +67,7 @@ func (s SqlPreferenceStore) Save(preferences model.Preferences) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s SqlPreferenceStore) save(transaction *gorp.Transaction, preference *model.Preference) error {
|
||||
func (s SqlPreferenceStore) save(transaction *sqlxTxWrapper, preference *model.Preference) error {
|
||||
preference.PreUpdate()
|
||||
|
||||
if err := preference.IsValid(); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user