Skip to content

Commit 6955ea3

Browse files
Update upgrading-users-core-version.md
1 parent 35d6b62 commit 6955ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

v2/contribute/checklists/saas/upgrading-users-core-version.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ hide_title: true
101101
- If `access_token_signing_key_dynamic` is currently set to `false` then run:
102102
```sql
103103
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(true);
104+
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
104105
INSERT INTO jwt_signing_keys(key_id, key_string, algorithm, created_at)
105106
select CONCAT('s-', created_at_time) as key_id, value as key_string, 'RS256' as algorithm, created_at_time as created_at
106107
from session_access_token_signing_keys;
107108
```
108109
- If `access_token_signing_key_dynamic` is currently set to `true`, or it not set at all:
109110
```sql
110111
ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(false);
112+
ALTER TABLE session_info ALTER COLUMN use_static_key DROP DEFAULT;
111113
```

0 commit comments

Comments
 (0)