summaryrefslogtreecommitdiffstats
path: root/models/models_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Move db related basic functions to models/db (#17075)Lunny Xiao2021-09-191-80/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * Move db related basic functions to models/db * Fix lint * Fix lint * Fix test * Fix lint * Fix lint * revert unnecessary change * Fix test * Fix wrong replace string * Use *Context * Correct committer spelling and fix wrong replaced words Co-authored-by: zeripath <art27@cantab.net>
* Add test to ensure that dumping of login sources remains correct (#16847)zeripath2021-08-281-0/+46
| | | | | | | | #16831 has occurred because of a missed regression. This PR adds a simple test to try to prevent this occuring again. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix setting version table in dump (#15753)zeripath2021-05-071-1/+1
| | | | | | | | | | | | | | * Fix setting version table in dump As noted on Discord there is a problem with gitea dump where the version table is not being dumped correctly. This is due to a missing pointer in the TableInfo. This PR fixes this. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models_test.go
* gitea dump: include version & Check InstallLock (#12760)65432020-09-071-0/+6
| | | | | | | | | * gitea dump: include version * Check InstallLock (close #12759) * fix test * fix lint
* Move database settings from models to setting (#7806)Lunny Xiao2019-08-241-86/+5
| | | | | | | | | | | | | | | | | | * move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
* fix dump table name error and add some test for dump database (#6394)Lunny Xiao2019-03-201-0/+14
|
* Change parsing of postgresql settings (#4275)techknowlogick2018-06-201-0/+40
| | | | | | | | | | | | | * Change parsing of postgresql settings Fix #4200 * Add copyright * update postgresql connection string * add tests
* Cleaner IMO (#1361)Kim "BKC" Carlbäcker2017-03-221-10/+40
|
* fix: gofmt error. (#918)Bo-Yi Wu2017-02-141-1/+1
|
* Use assert in legacy unit tests (#867)Ethan Koenig2017-02-081-19/+11
|
* #3442 add test suitesUnknwon2016-08-121-0/+33
|
* Remove old filesUnknown2014-05-081-55/+0
|
* IP: RC Code ReviewUnknown2014-03-271-9/+14
|
* All configuration reload-ableUnknown2014-03-211-0/+3
|
* FormattingUnknown2014-02-141-0/+4
|
* add user modelsLunny Xiao2014-02-141-3/+16
|
* add createrepository & deleterepositoryLunny Xiao2014-02-131-0/+30