File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ func NewTestEngine(x *xorm.Engine) (err error) {
262
262
return fmt .Errorf ("Connect to database: %v" , err )
263
263
}
264
264
265
+ x .ShowExecTime (true )
265
266
x .SetMapper (core.GonicMapper {})
266
267
x .SetLogger (NewXORMLogger (! setting .ProdMode ))
267
268
x .ShowSQL (! setting .ProdMode )
@@ -275,6 +276,7 @@ func SetEngine() (err error) {
275
276
return fmt .Errorf ("Failed to connect to database: %v" , err )
276
277
}
277
278
279
+ x .ShowExecTime (true )
278
280
x .SetMapper (core.GonicMapper {})
279
281
// WARNING: for serv command, MUST remove the output to os.stdout,
280
282
// so use log file to instead print to stdout.
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ func NewRepoContext() {
129
129
// Repository represents a git repository.
130
130
type Repository struct {
131
131
ID int64 `xorm:"pk autoincr"`
132
- OwnerID int64 `xorm:"UNIQUE(s)"`
132
+ OwnerID int64 `xorm:"UNIQUE(s) index "`
133
133
OwnerName string `xorm:"-"`
134
134
Owner * User `xorm:"-"`
135
135
LowerName string `xorm:"UNIQUE(s) INDEX NOT NULL"`
You can’t perform that action at this time.
0 commit comments