Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Fix/null schema attributes #520

Merged

Conversation

etschelp
Copy link
Contributor

@etschelp etschelp commented Jul 1, 2021

A schema config is linked to a credential definition and/or a trusted issuer. We had a startup job that deleted the default (read only) schemas on each startup regardless of any linked objects. As there were no db constraints child objects were referencing none existing objects resulting in joins without a result. I removed the read only attributes and added constraints. Schemas are only added if they do not exist already, and it is not possible to delete a schema if it is still referenced somewhere.

…oes not make sense to delete and recreate everything on startup because a user might already changed things

Signed-off-by: Philipp Etschel <philipp.etschel@ch.bosch.com>
Signed-off-by: Philipp Etschel <philipp.etschel@ch.bosch.com>
Signed-off-by: Philipp Etschel <philipp.etschel@ch.bosch.com>
Signed-off-by: Philipp Etschel <philipp.etschel@ch.bosch.com>
@etschelp etschelp merged commit ec9dfd5 into hyperledger-labs:master Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant