Lunny Xiao
a5c212cd1e
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
7 years ago
Ethan Koenig
a186f896eb
Replace deprecated Id method with ID ( #2655 )
7 years ago
Lunny Xiao
c2b107fcb0
Use AfterLoad instead of AfterSet on Structs ( #2628 )
* use AfterLoad instead of AfterSet on Structs
* fix the comments on AfterLoad
* fix the comments on action AfterLoad
7 years ago
Lunny Xiao
d00b7dab75
Use created & updated instead BeforeInsert & BeforeUpdate ( #2482 )
* use created & updated instead BeforeInsert & BeforeUpdate
* fix vendor checksum
* only show generated SQL when development mode
* remove extra update column updated_unix
* remove trace config
7 years ago
Bo-Yi Wu
2767b67a8e
refactor: remove workaround after the golang 1.7 release. ( #1349 )
* refactor: remove workaround after the golang 1.7 release.
* remove unused import.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor: Add remove function.
* refactor: rename
* refactor: update build flag
8 years ago
Lunny Xiao
d509192e69
fix delete repo will hang on postgres ( #1044 )
8 years ago
Ethan Koenig
27199827f1
Unit tests for models/admin
8 years ago
Andrey Nering
57b5bd07c9
Create missing database indexes ( #596 )
8 years ago
Bwko
ebdf0b9edb
Lint models/admin.go
8 years ago
Lunny Xiao
cb698a5267
use in instead string join ( #155 )
8 years ago
Thibault Meyer
b747797b29
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
8 years ago
Thibault Meyer
5d29fda874
Rewrite XORM queries
8 years ago
Sandro Santilli
cb1b3cc148
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
8 years ago
Sandro Santilli
f2c96b8f93
More MixedCase consts
8 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
d61bcdc10b
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
9 years ago
Andrey Nering
6cbdf1591e
Add comment note ( #3093 )
9 years ago
Andrey Nering
4d3f69567c
Fix remove folder issues, including initialization failling. ( #2969 )
- Prevent panic on creating notice if database is not available
- Prevent incorrect folder on Windows ("/" instead of "\")
9 years ago
Unknwon
9f43369667
#2302 Replace time.Time with Unix Timestamp (int64)
9 years ago
Andrey Nering
905065677a
Workaroud delete folder on Windows. Fix #1738
9 years ago
Unknwon
26feb3693e
#2558 delete local wiki copy when rename repo and user
9 years ago
Unknwon
efc250a25e
#2052 advanced select ops for system notices
9 years ago
Unknwon
0305d692eb
#2052 Ability to batch delete system notices
9 years ago
Antoine GIRARD
e82221515b
New admin notice UI based on user list example
9 years ago
Unknwon
1aa76bd279
Fix #532 , add system notice
10 years ago