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

10 Commits

Author SHA1 Message Date
Joe Chen
b1fefcbe50
refactor(db): migrate Follow off user.go () 2022-10-23 16:17:53 +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
75fbb82440
db: use context for backup and restore () 2022-06-11 11:10:25 +08:00
E99p1ant
a328e7ccc4
access_token: encrypt access token with SHA256 ()
* access_token: encrypt access token with SHA256

* revert list access token

* fix lint

* generate schemadoc

* add database migrations

* fix tests

* fix tests

* add test case for access token golden

* fix test in postgres

* `Sha256` -> `SHA256`

* Use GORM for migration

* task generate-schemadoc

* Use unique

* change migration name

* allow read

* task generate-schemadoc

* add changelog

* fix lint error

* update changelog

* remove Debug

* add comments

Co-authored-by: Joe Chen <jc@unknwon.io>
2022-06-05 13:34:21 +08:00
ᴜɴᴋɴᴡᴏɴ
2eaf1d693a
db: migrate access table to use GORM () 2020-10-06 15:43:28 +08:00
ᴜɴᴋɴᴡᴏɴ
3af91d7cfd
auth: decouple types and functions from db () 2020-09-20 11:19:02 +08:00
ᴜɴᴋɴᴡᴏɴ
06193ed825
schemadoc: add go:generate to output database schema ()
* schemadoc: add go:generate to output database schema

* Check errors

* Revert string renames
2020-09-06 17:02:25 +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