mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 08:06:19 +00:00
chore(db): consolidate unreleased migrations for v3.29.0
Merge migrations 0033-0035 into one migration while preserving published migrations 0001-0032. Verified PostgreSQL 18 fresh installation, upgrade from v3.28.0, existing data defaults, and schema equivalence with the original migration sequence. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -30,6 +30,4 @@ d4b599066d7382a1c9cb6b3c003200046579e4fce3531f232cbd665a9d92c542 0026_codex_pri
|
||||
f10058e2b4c974b6d2ffa11be78b085504a233205253948c03357ef6fe234bca 0030_analytics_and_scheduling.sql
|
||||
b49832e205405de7ef078f3b65c0c19f2c030b8984d42411598738b6b6c146bf 0031_proxy_and_privacy.sql
|
||||
a0e409402611dbc76bb71393b8eda7c717756c18974dbabca305fdcb4b115f31 0032_usage_and_scheduling.sql
|
||||
6acd13f237cd163fdf9b52ec9c003ca75b723980e5db5c52c9776413cfe85c4b 0033_proxy_websocket_capacity.sql
|
||||
0bcd3b00ad7038d9a62e955ff607032f072b08c9f529cf43f794a9820965bdbd 0034_reset_credit_automation.sql
|
||||
3e8ba22f9611c31df3e1159f6a5c237c2dd0020751ae83c029de8b23623ab068 0035_reset_credit_weekly_threshold.sql
|
||||
592b80972af3bd8b3527b42da3703ca1106ecaf8fd5273c676189ca28fcbd067 0033_proxy_and_reset_credits.sql
|
||||
|
||||
+9
@@ -1,3 +1,7 @@
|
||||
alter table outbound_proxies
|
||||
add column max_websocket_connections bigint not null default 0
|
||||
check (max_websocket_connections between 0 and 4294967295);
|
||||
|
||||
-- 主动重置卡配置与计划随账号保存,到期索引只覆盖开启自动使用的账号
|
||||
ALTER TABLE runtime_settings
|
||||
ADD COLUMN reset_credit_lead_minutes integer NOT NULL DEFAULT 10
|
||||
@@ -20,3 +24,8 @@ ALTER TABLE provider_accounts
|
||||
CREATE INDEX provider_accounts_reset_credit_due_idx
|
||||
ON provider_accounts (reset_credit_next_run_at, id)
|
||||
WHERE enabled AND reset_credit_automation_json ->> 'enabled' = 'true';
|
||||
|
||||
-- 自动使用重置卡的剩余周额度上限,空值表示不限制
|
||||
ALTER TABLE runtime_settings
|
||||
ADD COLUMN reset_credit_max_weekly_remaining_percent integer
|
||||
CHECK (reset_credit_max_weekly_remaining_percent BETWEEN 0 AND 100);
|
||||
@@ -1,3 +0,0 @@
|
||||
alter table outbound_proxies
|
||||
add column max_websocket_connections bigint not null default 0
|
||||
check (max_websocket_connections between 0 and 4294967295);
|
||||
@@ -1,4 +0,0 @@
|
||||
-- 自动使用重置卡的剩余周额度上限,空值表示不限制
|
||||
ALTER TABLE runtime_settings
|
||||
ADD COLUMN reset_credit_max_weekly_remaining_percent integer
|
||||
CHECK (reset_credit_max_weekly_remaining_percent BETWEEN 0 AND 100);
|
||||
Reference in New Issue
Block a user