1
0
mirror of https://github.com/gogs/gogs.git synced 2025-05-31 11:42:13 +00:00

11 Commits

Author SHA1 Message Date
Joe Chen
1905b19ee7
refactor(db): migrate methods off user.go () 2022-10-30 23:04:24 +08:00
Joe Chen
f6acc4763e
test(db): add missing tests () 2022-10-23 21:53:11 +08:00
Joe Chen
083c3ee659
db: refactor "action" table to use GORM ()
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-06-25 18:07:39 +08:00
Joe Chen
b772603d78
migrations: add tests and remove XORM () 2022-06-12 14:15:01 +08:00
Joe Chen
1df62fafb9
db: use context and go-mockgen for ReposStore () 2022-06-11 12:43:56 +08:00
Joe Chen
5f34265db6
ci: run database tests against Postgres, MySQL and SQLite () 2022-06-01 22:51:46 +08:00
Joe Chen
aeb5e34490
golangci-lint: add unparam linter () 2022-03-13 22:37:00 +08:00
ᴜɴᴋɴᴡᴏɴ
519e59b577
db: migrate to GORM v2 () 2020-09-06 10:11:08 +08:00
ᴜɴᴋɴᴡᴏɴ
9bb218734c
db: use GORM to backup and restore non-legacy tables () 2020-05-04 16:25:57 +08:00
ᴜɴᴋɴᴡᴏɴ
9d64d222a8
db: add tests for users ()
* 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
ᴜɴᴋɴᴡᴏɴ
fa497b1633
db: add tests for repos ()
* Add Repos.create method

* Fix repo name error handling

* Fix all compile errors

* Update github.com/go-macaron/captcha to fix http issue

* Add repos tests
2020-04-17 10:14:18 +08:00