mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Merge refresh margin and group Fast mode changes into migration 0022 before v3.20.0. Preserve the v3.19.0 migration history and verify upgrades from migration 0021. Co-authored-by: Codex <noreply@openai.com>
19 lines
795 B
SQL
19 lines
795 B
SQL
-- OAuth 刷新提前量收窄到官方 codex 客户端基线(exp 前 5 分钟,manager.rs
|
|
-- CHATGPT_ACCESS_TOKEN_REFRESH_WINDOW_MINUTES=5);仍为旧默认 3600 的已部署
|
|
-- 实例一并迁移,管理员自定义值保持不变
|
|
alter table runtime_settings
|
|
alter column refresh_margin_seconds set default 300;
|
|
|
|
update runtime_settings
|
|
set refresh_margin_seconds = 300
|
|
where id = 1
|
|
and refresh_margin_seconds = 3600;
|
|
|
|
-- 分组原有的 Fast 禁用选择保持不变,未禁用的分组继续跟随客户端
|
|
alter table account_groups add column fast_mode text not null default 'default'
|
|
check (fast_mode in ('default', 'enabled', 'disabled'));
|
|
|
|
update account_groups set fast_mode = 'disabled' where disable_fast;
|
|
|
|
alter table account_groups drop column disable_fast;
|