Lunny Xiao
f2e20c81b6
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
pirms 6 gadiem
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID (#2655)
pirms 6 gadiem
Lunny Xiao
a8717e5e3a
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
pirms 6 gadiem
Lunny Xiao
005900baea
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
pirms 6 gadiem
Bo-Yi Wu
08f7fded3c
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
pirms 7 gadiem
Lunny Xiao
c0ea3963be
fix delete repo will hang on postgres (#1044)
pirms 7 gadiem
Ethan Koenig
b316b2e740
Unit tests for models/admin
pirms 7 gadiem
Andrey Nering
84b7d29d34
Create missing database indexes (#596)
pirms 7 gadiem
Bwko
d8e11a8eaa
Lint models/admin.go
pirms 7 gadiem
Lunny Xiao
30a37311f8
use in instead string join (#155)
pirms 7 gadiem
Thibault Meyer
a4454f5d0f
Rewrite XORM queries
pirms 7 gadiem
Sandro Santilli
4247304f5a
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
pirms 7 gadiem
Sandro Santilli
f6a11e0de1
More MixedCase consts
pirms 7 gadiem
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
pirms 7 gadiem
Unknwon
250be011c7
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
pirms 8 gadiem
Andrey Nering
12d30255a7
Add comment note (#3093)
pirms 8 gadiem
Andrey Nering
d8612f7704
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 "\")
pirms 8 gadiem
Unknwon
ad513a20e9
#2302 Replace time.Time with Unix Timestamp (int64)
pirms 8 gadiem
Andrey Nering
d37cf09ccd
Workaroud delete folder on Windows. Fix #1738
pirms 8 gadiem
Unknwon
f8182ac521
#2558 delete local wiki copy when rename repo and user
pirms 8 gadiem
Unknwon
f41360d864
#2052 advanced select ops for system notices
pirms 8 gadiem
Unknwon
0be8b1b1a1
#2052 Ability to batch delete system notices
pirms 8 gadiem
Antoine GIRARD
14a1101139
New admin notice UI based on user list example
pirms 8 gadiem
Unknwon
1aa76bd279
Fix #532, add system notice
pirms 9 gadiem