1
0
mirror of https://github.com/gogs/gogs.git synced 2025-04-28 05:33:05 +00:00

10 Commits

Author SHA1 Message Date
Joe Chen
0f8c71d3b3
fix(migration): skip v20 if column sha256 already exists () 2023-02-14 22:44:23 +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
4a3dc6c774
db: skip auto migrate for existing "version" table () 2022-06-14 15:47:11 +08:00
Joe Chen
b772603d78
migrations: add tests and remove XORM () 2022-06-12 14:15:01 +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
ᴜɴᴋɴᴡᴏɴ
3ed8c292c2
migrations: remove old migrations before 0.12.0 () 2020-08-23 12:51:55 +08:00
ᴜɴᴋɴᴡᴏɴ
cb439a126a
db: add tests for two factors ()
* Rename to TwoFactors.Create

* Use GORM to execute queries

* TwoFactor.GetByUserID

* Add tests

* Fix failing tests

* Add MD5 tests

* Add tests for RandomChars
2020-04-14 09:41:54 +08:00
ᴜɴᴋɴᴡᴏɴ
5843038a08
workflows: enable golangci-lint ()
* Create golint.yml

* Update golint.yml

* Update golint.yml

* Fix errcheck

* Fix gosimple

* Fix staticcheck
2020-03-21 13:39:32 +08:00
ᴜɴᴋɴᴡᴏɴ
1c09373b4f
log: migrate to unknwon.dev/clog/v2 ()
* Add unknwon.dev/clog/v2

* Update all places
2020-02-20 02:25:02 +08:00
Unknwon
01c8df01ec
internal: move packages under this directory ()
* Rename pkg -> internal

* Rename routes -> route

* Move route -> internal/route

* Rename models -> db

* Move db -> internal/db

* Fix route2 -> route

* Move cmd -> internal/cmd

* Bump version
2019-10-24 01:51:46 -07:00