2019-01-09 17:22:57 +00:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2022-11-02 08:54:36 +00:00
|
|
|
package v1_8 // nolint
|
2019-01-09 17:22:57 +00:00
|
|
|
|
|
|
|
import (
|
2019-10-17 09:26:49 +00:00
|
|
|
"xorm.io/xorm"
|
2019-01-09 17:22:57 +00:00
|
|
|
)
|
|
|
|
|
2022-11-02 08:54:36 +00:00
|
|
|
func AddUserDefaultTheme(x *xorm.Engine) error {
|
2019-01-09 17:22:57 +00:00
|
|
|
type User struct {
|
2019-01-12 19:43:47 +00:00
|
|
|
Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
|
2019-01-09 17:22:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return x.Sync2(new(User))
|
|
|
|
}
|