Skip to content

Commit e7cf2b7

Browse files
committed
fix compilation
1 parent 016d720 commit e7cf2b7

File tree

2 files changed

+0
-65
lines changed

2 files changed

+0
-65
lines changed

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ require (
7070
github.com/mattn/go-sqlite3 v1.11.0
7171
github.com/mcuadros/go-version v0.0.0-20190308113854-92cdf37c5b75
7272
github.com/microcosm-cc/bluemonday v0.0.0-20161012083705-f77f16ffc87a
73-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
74-
github.com/modern-go/reflect2 v1.0.1 // indirect
7573
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae // indirect
7674
github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc
7775
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5

models/migrations/v93.go

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -4,78 +4,15 @@
44

55
package migrations
66

7-
<<<<<<< HEAD
87
import (
9-
"code.gitea.io/gitea/modules/timeutil"
108
"github.com/go-xorm/xorm"
119
)
1210

13-
func addProjectsTable(x *xorm.Engine) error {
14-
15-
type ProjectType uint8
16-
17-
sess := x.NewSession()
18-
defer sess.Close()
19-
20-
if err := sess.Begin(); err != nil {
21-
return err
22-
}
23-
24-
type Project struct {
25-
ID int64 `xorm:"pk autoincr"`
26-
Title string `xorm:"INDEX NOT NULL"`
27-
Description string `xorm:"TEXT"`
28-
RepoID int64 `xorm:"NOT NULL"`
29-
CreatorID int64 `xorm:"NOT NULL"`
30-
IsClosed bool `xorm:"INDEX"`
31-
NumIssues int
32-
NumClosedIssues int
33-
34-
Type ProjectType
35-
36-
ClosedDateUnix timeutil.TimeStamp
37-
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
38-
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
39-
}
40-
41-
type Issue struct {
42-
ProjectID int64 `xorm:"INDEX"`
43-
}
44-
45-
type ProjectBoard struct {
46-
ID int64 `xorm:"pk autoincr"`
47-
ProjectID int64 `xorm:"INDEX NOT NULL"`
48-
Title string
49-
50-
// Not really needed but helpful
51-
CreatorID int64 `xorm:"NOT NULL"`
52-
53-
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
54-
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
55-
}
56-
57-
if err := x.Sync(new(Project)); err != nil {
58-
return err
59-
}
60-
61-
if err := x.Sync(new(ProjectBoard)); err != nil {
62-
return err
63-
}
64-
65-
if err := x.Sync2(new(Issue)); err != nil {
66-
return err
67-
}
68-
69-
return sess.Commit()
70-
=======
71-
import "github.com/go-xorm/xorm"
72-
7311
func addEmailNotificationEnabledToUser(x *xorm.Engine) error {
7412
// User see models/user.go
7513
type User struct {
7614
EmailNotificationsPreference string `xorm:"VARCHAR(20) NOT NULL DEFAULT 'enabled'"`
7715
}
7816

7917
return x.Sync2(new(User))
80-
>>>>>>> origin
8118
}

0 commit comments

Comments
 (0)