This commit is contained in:
@@ -6,12 +6,11 @@ package v1_8
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
|
||||
"xorm.io/xorm"
|
||||
"gitea.dev/models/db"
|
||||
"gitea.dev/modules/timeutil"
|
||||
)
|
||||
|
||||
func AddPullRequestRebaseWithMerge(x *xorm.Engine) error {
|
||||
func AddPullRequestRebaseWithMerge(x db.EngineMigration) error {
|
||||
// RepoUnit describes all units of a repository
|
||||
type RepoUnit struct {
|
||||
ID int64
|
||||
|
||||
@@ -3,11 +3,9 @@
|
||||
|
||||
package v1_8
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
import "gitea.dev/models/db"
|
||||
|
||||
func AddUserDefaultTheme(x *xorm.Engine) error {
|
||||
func AddUserDefaultTheme(x db.EngineMigration) error {
|
||||
type User struct {
|
||||
Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
|
||||
}
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
package v1_8
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/models/migrations/base"
|
||||
|
||||
"xorm.io/xorm"
|
||||
"gitea.dev/models/db"
|
||||
"gitea.dev/models/migrations/base"
|
||||
)
|
||||
|
||||
func RenameRepoIsBareToIsEmpty(x *xorm.Engine) error {
|
||||
func RenameRepoIsBareToIsEmpty(x db.EngineMigration) error {
|
||||
type Repository struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
IsBare bool
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
package v1_8
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
||||
"xorm.io/xorm"
|
||||
"gitea.dev/models/db"
|
||||
"gitea.dev/modules/setting"
|
||||
)
|
||||
|
||||
func AddCanCloseIssuesViaCommitInAnyBranch(x *xorm.Engine) error {
|
||||
func AddCanCloseIssuesViaCommitInAnyBranch(x db.EngineMigration) error {
|
||||
type Repository struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
CloseIssuesViaCommitInAnyBranch bool `xorm:"NOT NULL DEFAULT false"`
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
package v1_8
|
||||
|
||||
import "xorm.io/xorm"
|
||||
import "gitea.dev/models/db"
|
||||
|
||||
func AddIsLockedToIssues(x *xorm.Engine) error {
|
||||
func AddIsLockedToIssues(x db.EngineMigration) error {
|
||||
// Issue see models/issue.go
|
||||
type Issue struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
|
||||
@@ -6,11 +6,12 @@ package v1_8
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"xorm.io/xorm"
|
||||
"gitea.dev/models/db"
|
||||
|
||||
"xorm.io/xorm/schemas"
|
||||
)
|
||||
|
||||
func ChangeU2FCounterType(x *xorm.Engine) error {
|
||||
func ChangeU2FCounterType(x db.EngineMigration) error {
|
||||
var err error
|
||||
|
||||
switch x.Dialect().URI().DBType {
|
||||
|
||||
Reference in New Issue
Block a user