Files
LLM_Proxy/scripts/sql/001_migrate_created_at_to_localtime.sql
T
Von e734cf7246 refactor: simplify proxy architecture around openai claude codex
- trim public provider protocols to openai_chat, openai_responses, claude_chat and codex\n- remove public stream_format and gemini-family downstream surfaces\n- add executor/decoder/translator pipeline, provider help popovers and /v1/models metadata\n- refresh README, 4+1 architecture docs, sample config, and supporting tests\n- include local-time storage scripts and related repository/service coverage
2026-03-31 07:41:36 +08:00

23 lines
743 B
SQL

BEGIN TRANSACTION;
UPDATE users
SET
created_at = datetime(created_at, 'localtime') || '.000000',
updated_at = datetime(updated_at, 'localtime') || '.000000'
WHERE created_at IS NOT NULL OR updated_at IS NOT NULL;
UPDATE request_logs
SET
start_time = datetime(start_time, 'localtime') || '.000000',
end_time = datetime(end_time, 'localtime') || '.000000',
created_at = datetime(created_at, 'localtime') || '.000000'
WHERE start_time IS NOT NULL OR end_time IS NOT NULL OR created_at IS NOT NULL;
UPDATE daily_request_stats
SET
created_at = datetime(created_at, 'localtime') || '.000000',
updated_at = datetime(updated_at, 'localtime') || '.000000'
WHERE created_at IS NOT NULL OR updated_at IS NOT NULL;
COMMIT;