Commit Graph

8 Commits (4acaaac85aca427771030ab2e9a1465e9517ba1d)

Author SHA1 Message Date
Joe Chen 069f1ed9a4
db: migrate `admin.go` to `notices.go` with GORM (#7536) 2023-08-23 00:15:30 -04:00
Joe Chen 0721ef2399
refactor(db): migrate off `user_email.go` to `users.go` (#7452) 2023-05-14 20:15:47 -04:00
Joe Chen b1fefcbe50
refactor(db): migrate `Follow` off `user.go` (#7203) 2022-10-23 16:17:53 +08:00
Joe Chen 083c3ee659
db: refactor "action" table to use GORM (#7054)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-06-25 18:07:39 +08:00
Joe Chen 4cc3000b07
schemadoc: print table indexes (#7012) 2022-06-05 18:08:59 +08:00
E99p1ant a328e7ccc4
access_token: encrypt access token with SHA256 (#7008)
* 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 (#6371) 2020-10-06 15:43:28 +08:00
ᴜɴᴋɴᴡᴏɴ 06193ed825
schemadoc: add go:generate to output database schema (#6310)
* schemadoc: add go:generate to output database schema

* Check errors

* Revert string renames
2020-09-06 17:02:25 +08:00