pat-s
63a80bf2b9
feat: use XORM EngineGroup instead of single Engine connection ( #7212 )
...
Resolves #7207
Add new configuration to make XORM work with a main and replicas database instances. The follow configuration parameters were added:
- `HOST_PRIMARY`
- `HOST_REPLICAS`
- `LOAD_BALANCE_POLICY`. Options:
- `"WeightRandom"` -> `xorm.WeightRandomPolicy`
- `"WeightRoundRobin` -> `WeightRoundRobinPolicy`
- `"LeastCon"` -> `LeastConnPolicy`
- `"RoundRobin"` -> `xorm.RoundRobinPolicy()`
- default: `xorm.RandomPolicy()`
- `LOAD_BALANCE_WEIGHTS`
Co-authored-by: pat-s <patrick.schratz@gmail.com@>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7212
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2025-03-30 11:34:02 +00:00
Gusted
2457f5ff22
chore: branding import path ( #7337 )
...
- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`.
- Resolves forgejo/discussions#258
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-03-27 19:40:14 +00:00
wxiaoguang
498b5f9867
[PORT] Refactor the DB migration system slightly (gitea#32344)
...
Introduce "idNumber" for each migration, and clarify the difference
between the migration ID number and database version.
---
Conflict resolution: trivial
(cherry picked from commit d70af38447a759d4a935e315e18efa4dd625f655)
2024-11-03 17:00:48 +01:00
Lunny Xiao
62f995203a
Move doctor package from modules to services ( #28856 )
2024-01-20 10:07:31 +08:00