Skip to content

Commit

Permalink
chore: drop default value after migration in the changelog (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus authored May 10, 2023
1 parent 05067d3 commit deaa20f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Migration

- If using `access_token_signing_key_dynamic` false in the core:
- `ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(true);`
- ```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;
```
- ```sql
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 using `access_token_signing_key_dynamic` true (or not set) in the core:
- `ALTER TABLE session_info ADD COLUMN use_static_key BOOLEAN NOT NULL DEFAULT(false);`
- ```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;
```

## [2.4.0] - 2023-03-30

Expand Down

0 comments on commit deaa20f

Please sign in to comment.