1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-26 13:15:48 +00:00
gitea/models/migrations
Lunny Xiao d6dd6d641b
Fix all possible setting error related storages and added some tests (#23911)
Follow up #22405

Fix #20703 

This PR rewrites storage configuration read sequences with some breaks
and tests. It becomes more strict than before and also fixed some
inherit problems.

- Move storage's MinioConfig struct into setting, so after the
configuration loading, the values will be stored into the struct but not
still on some section.
- All storages configurations should be stored on one section,
configuration items cannot be overrided by multiple sections. The
prioioty of configuration is `[attachment]` > `[storage.attachments]` |
`[storage.customized]` > `[storage]` > `default`
- For extra override configuration items, currently are `SERVE_DIRECT`,
`MINIO_BASE_PATH`, `MINIO_BUCKET`, which could be configured in another
section. The prioioty of the override configuration is `[attachment]` >
`[storage.attachments]` > `default`.
- Add more tests for storages configurations.
- Update the storage documentations.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-14 11:42:38 +08:00
..
base Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
fixtures Remove wrongly added column on migration test fixtures (#23456) 2023-03-14 19:49:59 +08:00
v1_6 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_7 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_8 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_9 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_10 Fix all possible setting error related storages and added some tests (#23911) 2023-06-14 11:42:38 +08:00
v1_11 Fix all possible setting error related storages and added some tests (#23911) 2023-06-14 11:42:38 +08:00
v1_12 Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_13 Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
v1_14 Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
v1_15 Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_16 Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_17 Drop migration for ForeignReference (#23605) 2023-03-23 15:01:55 -04:00
v1_18 Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_19 Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_20 Redesign Scoped Access Tokens (#24767) 2023-06-04 20:57:16 +02:00
v1_21 Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00
migrations.go Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00