Skip to content

Commit b276d0b

Browse files
authored
feat: add auth_migration annotation for the migrations (#2234)
Adds `auth_migration` annotation for observability
1 parent 6296a5a commit b276d0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
/* auth_migration: 20250925093508 */
12
ALTER TABLE {{ index .Options "Namespace" }}.mfa_factors
23
ADD COLUMN IF NOT EXISTS last_webauthn_challenge_data JSONB;
3-
4+
/* auth_migration: 20250925093508 */
45
COMMENT ON COLUMN {{ index .Options "Namespace" }}.mfa_factors.last_webauthn_challenge_data IS 'Stores the latest WebAuthn challenge data including attestation/assertion for customer verification';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
/* auth_migration: 20251007112900 */
12
ALTER TABLE {{ index .Options "Namespace" }}.sessions
23
ADD COLUMN IF NOT EXISTS refresh_token_hmac_key text,
34
ADD COLUMN IF NOT EXISTS refresh_token_counter bigint;
45

6+
/* auth_migration: 20251007112900 */
57
COMMENT ON COLUMN {{ index .Options "Namespace" }}.sessions.refresh_token_hmac_key IS 'Holds a HMAC-SHA256 key used to sign refresh tokens for this session.';
8+
/* auth_migration: 20251007112900 */
69
COMMENT ON COLUMN {{ index .Options "Namespace" }}.sessions.refresh_token_counter IS 'Holds the ID (counter) of the last issued refresh token.';

0 commit comments

Comments
 (0)