summaryrefslogtreecommitdiffstats
path: root/models/attachment.go
Commit message (Collapse)AuthorAgeFilesLines
* Small improve on deleting attachements (#3145)Lunny Xiao2017-12-241-8/+17
| | | | | | * Small improve on deleting attachements * improve the sequence of deletion
* simple usage of x (#3144)Lunny Xiao2017-12-111-4/+1
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-10/+3
| | | | | | | | | | | | | | * 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
* Use AfterLoad instead of AfterSet on Structs (#2628)Lunny Xiao2017-10-011-7/+7
| | | | | | | | * use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
* Use created & updated instead BeforeInsert & BeforeUpdate (#2482)Lunny Xiao2017-09-131-6/+1
| | | | | | | | | | | | * 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
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-1/+1
|
* feat: add download count field and unit testing for attachment. (#1512)Bo-Yi Wu2017-04-201-9/+22
| | | | | | | | | | | | | | * feat: add download count field and unit testing. * fix: unit testing * refactor: improve testing. * fix: update comment * add default value. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Fix unused Engine bugs (#1064)Ethan Koenig2017-02-271-1/+1
|
* Allow custom public files (#782)Thomas Boerger2017-01-281-1/+0
| | | | | | * Allow custom public files * Gofmt code, lots of places not related to this pr
* Spun attachments into seperate go file (#701)Philip Couling2017-01-201-0/+176
Moved attachments into seperate go file