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