Closed megies closed 11 years ago
IntegrityError
is raised because of the current SQL schema definition set in https://github.com/barsch/seishub.core/blob/master/seishub/core/registry/defaults.py#L44 - please note: type
can be only one of ['XMLSchema', 'RelaxNG', 'Schematron']
deleting the UniqueConstraint should resolve the issue - however you have to update existing databases as well to make sure you cycle over all valid schemas if appropriate - right now the system expects max. one schema per resourcetype
What is the status here - should we close this as QuakeML is not complete anyway? ;)
blah. whatever.
Closing. We use the RelaxNG schema for validation now and that can be easily merged into one file, see barsch/seishub.plugins.seismology#3.
@barsch, @krischer currently, only one schema file can be stored per resource type. QuakeML bases on two separate schema files however. I've tried to fix this here: https://github.com/barsch/seishub.core/blob/master/seishub/core/packages/installer.py#L58
by checking against file name of the registered resources:
but then I get an error
so I guess this case is not supported by the current setup. Where to fix this?