mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Add configurable minimum versions for Codex Desktop and CLI, return 426 for unsupported recognized clients, and provide install and Windows offline download guidance. Co-authored-by: Codex <noreply@openai.com>
22 lines
693 B
SQL
22 lines
693 B
SQL
alter table runtime_settings
|
|
add column min_codex_desktop_version text,
|
|
add column min_codex_cli_version text,
|
|
add constraint runtime_settings_client_versions_ck check (
|
|
(
|
|
min_codex_desktop_version is null
|
|
or (
|
|
octet_length(min_codex_desktop_version) between 1 and 64
|
|
and min_codex_desktop_version = btrim(min_codex_desktop_version)
|
|
and min_codex_desktop_version !~ '[[:cntrl:]]'
|
|
)
|
|
)
|
|
and (
|
|
min_codex_cli_version is null
|
|
or (
|
|
octet_length(min_codex_cli_version) between 1 and 64
|
|
and min_codex_cli_version = btrim(min_codex_cli_version)
|
|
and min_codex_cli_version !~ '[[:cntrl:]]'
|
|
)
|
|
)
|
|
);
|