2019-01-09 22:52:57 +05:30
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
2022-11-27 23:50:29 +05:30
|
|
|
// SPDX-License-Identifier: MIT
|
2019-01-09 22:52:57 +05:30
|
|
|
|
2022-12-08 13:51:37 +05:30
|
|
|
package v1_8 //nolint
|
2019-01-09 22:52:57 +05:30
|
|
|
|
|
|
|
import (
|
2019-10-17 14:56:49 +05:30
|
|
|
"xorm.io/xorm"
|
2019-01-09 22:52:57 +05:30
|
|
|
)
|
|
|
|
|
2022-11-02 14:24:36 +05:30
|
|
|
func AddUserDefaultTheme(x *xorm.Engine) error {
|
2019-01-09 22:52:57 +05:30
|
|
|
type User struct {
|
2019-01-13 01:13:47 +05:30
|
|
|
Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
|
2019-01-09 22:52:57 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
return x.Sync2(new(User))
|
|
|
|
}
|