P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
11 lines
454 B
SQL
11 lines
454 B
SQL
-- Add user_agent column to usage_logs table
|
|
-- Records the User-Agent header from API requests for analytics and debugging
|
|
|
|
ALTER TABLE usage_logs
|
|
ADD COLUMN IF NOT EXISTS user_agent VARCHAR(512);
|
|
|
|
-- Optional: Add index for user_agent queries (uncomment if needed for analytics)
|
|
-- CREATE INDEX IF NOT EXISTS idx_usage_logs_user_agent ON usage_logs(user_agent);
|
|
|
|
COMMENT ON COLUMN usage_logs.user_agent IS 'User-Agent header from the API request';
|