Joe Chen
b1fefcbe50
refactor(db): migrate `Follow` off `user.go` ( #7203 )
2022-10-23 16:17:53 +08:00
Joe Chen
b772603d78
migrations: add tests and remove XORM ( #7050 )
2022-06-12 14:15:01 +08:00
Joe Chen
ccdcb1c45b
db: run tests with pure-Go SQLite ( #6998 )
2022-06-03 10:03:48 +08:00
Joe Chen
5f34265db6
ci: run database tests against Postgres, MySQL and SQLite ( #6996 )
2022-06-01 22:51:46 +08:00
ᴜɴᴋɴᴡᴏɴ
72af17bbbe
db: simplify GORM logger init in tests ( #6444 )
2020-12-06 01:06:24 +08:00
ᴜɴᴋɴᴡᴏɴ
519e59b577
db: migrate to GORM v2 ( #6309 )
2020-09-06 10:11:08 +08:00
ᴜɴᴋɴᴡᴏɴ
9bb218734c
db: use GORM to backup and restore non-legacy tables ( #6142 )
2020-05-04 16:25:57 +08:00
ᴜɴᴋɴᴡᴏɴ
9d64d222a8
db: add tests for users ( #6116 )
...
* Add new methods
* Use Users.Create to replace previous hack
* Reduce side effect
* Do not clear tables when test failed
* test_users_Authenticate
* Rename constant
* test_users_Create
* test_users_GetByEmail
* test_users_GetByID
* test_users_GetByUsername
2020-04-18 12:07:30 +08:00
ᴜɴᴋɴᴡᴏɴ
41f56ad05d
login_source: migrate to GORM and add tests ( #6090 )
...
* Use GORM in all write paths
* Migrate to GORM
* Fix lint errors
* Use GORM to init table
* dbutil: make writer detect error
* Add more tests
* Rename to clearTables
* db: finish adding tests
* osutil: add tests
* Fix load source files path
2020-04-11 20:18:05 +08:00
ᴜɴᴋɴᴡᴏɴ
76bb647d24
db: add tests for permissions ( #6088 )
...
* Add flag to print SQLs
* Add tests for perms
* Make results stable
* codecov: only show diff
* Once again, stable find results
2020-04-11 05:39:45 +08:00
ᴜɴᴋɴᴡᴏɴ
e077ecdd9d
db: add tests for LFS ( #6087 )
...
* Improve DB test setup
* Discard GORM logs in non-verbose mode
* Add tests to lfs
* Fix data race
2020-04-11 02:56:37 +08:00
ᴜɴᴋɴᴡᴏɴ
62dda96159
access_token: migrate to GORM and add tests ( #6086 )
...
* access_token: migrate to GORM
* Add tests
* Fix tests
* Fix test clock
2020-04-11 01:25:19 +08:00
ᴜɴᴋɴᴡᴏɴ
e186a3d2c9
db: add tests for helper functions ( #6084 )
2020-04-10 22:51:24 +08:00