Skip to content

Commit

Permalink
Update upgrading-users-core-version.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar authored May 10, 2023
1 parent 35d6b62 commit 6955ea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v2/contribute/checklists/saas/upgrading-users-core-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ hide_title: true
- If `access_token_signing_key_dynamic` is currently set to `false` then run:
```sql
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(true);
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
INSERT INTO jwt_signing_keys(key_id, key_string, algorithm, created_at)
select CONCAT('s-', created_at_time) as key_id, value as key_string, 'RS256' as algorithm, created_at_time as created_at
from session_access_token_signing_keys;
```
- If `access_token_signing_key_dynamic` is currently set to `true`, or it not set at all:
```sql
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(false);
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
```

0 comments on commit 6955ea3

Please sign in to comment.