Files
pad/internal/store/pgmigrations/105_cli_auth_requester.sql
T
xarmian 55db86f68e feat(auth): Deny and request context on the CLI sign-in approval page (TASK-2253) (#1943)
* feat(auth): Deny and request context on the CLI sign-in approval page (TASK-2253)

* test(store): ScanNUL cost figures count the two cli_auth_sessions columns (TASK-2253)
2026-10-09 05:04:19 -04:00

5 lines
356 B
SQL

-- Migration 105 (Postgres): who asked for a CLI sign-in (TASK-2253).
-- Postgres counterpart to migrations/132_cli_auth_requester.sql; the rationale is there.
ALTER TABLE cli_auth_sessions ADD COLUMN IF NOT EXISTS requester_ip TEXT NOT NULL DEFAULT '';
ALTER TABLE cli_auth_sessions ADD COLUMN IF NOT EXISTS requester_user_agent TEXT NOT NULL DEFAULT '';