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

Add many2many relationship for DID document services and verification methods #3373

Merged

Conversation

gerardsn
Copy link
Member

@gerardsn gerardsn commented Sep 16, 2024

closes #3367
The relationships are currently one way: did document -> service / vm. I don't think we need the other direction anytime soon.

Renamed DIDDocument to DidDocument so gorm parses it as did_document (and not d_id_document). This can be handled with tags, so I can revert this if needed.

Also changed table did_verificationmethod to did_verification_method for the same reason, but these are 2 words so imo should be separated with a _

@gerardsn gerardsn marked this pull request as ready for review September 16, 2024 08:30
@gerardsn gerardsn merged commit db0d86f into master Sep 16, 2024
8 of 9 checks passed
@gerardsn gerardsn deleted the fix-3367/add-many2many-relationship-for-services-and-vms branch September 16, 2024 09:25
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.

SQL: did_service and did_verification_method entries are overwritten on DID updates
2 participants