-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use created & updated instead BeforeInsert & BeforeUpdate #2482
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one quick question
models/models.go
Outdated
@@ -239,6 +239,7 @@ func NewTestEngine(x *xorm.Engine) (err error) { | |||
|
|||
x.SetMapper(core.GonicMapper{}) | |||
x.SetLogger(log.XORMLogger) | |||
x.ShowSQL(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this line do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For debug to show the SQL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably only be set to true only when running Gitea in development mode
Had no rights to push to your repository. But correct checksums for govendor are:
|
76004c9
to
fcc0bd9
Compare
82c1825
to
06e652e
Compare
LGTM |
LGTM |
I think these files are missing changes: |
@lafriks those |
Also update xorm to the latest version.