Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: set wallet credential format column default value #681

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

mikeplotean
Copy link
Contributor

Description

When kotlin-exposed attempts to add the missing table / columns (format column for wallet-credentials table), it fails for tables that already have records.
This hotfix sets the wallet-credential format column to have a default value - CredentialFormat.jwt_vc_json.
Since the wallet-api couldn't claim until now other credential types than jwt and sdjwt, this solution is safe (both being covered by the aforementioned format). But a proper solution would be introducing a db migration strategy.

@mikeplotean mikeplotean force-pushed the fix/wallet-credential-format-default-value branch from 7fe2cbf to 966419c Compare August 12, 2024 09:50
@mikeplotean mikeplotean force-pushed the fix/wallet-credential-format-default-value branch from 966419c to e4f688e Compare August 13, 2024 11:33
Copy link

sonarcloud bot commented Aug 13, 2024

@mikeplotean mikeplotean merged commit e1c7454 into main Aug 14, 2024
4 checks passed
@mikeplotean mikeplotean deleted the fix/wallet-credential-format-default-value branch August 14, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants