diff --git a/resources/sql/060_vocabulary-schema.sql b/resources/sql/060_vocabulary-schema.sql index c1883a4..7caf1df 100644 --- a/resources/sql/060_vocabulary-schema.sql +++ b/resources/sql/060_vocabulary-schema.sql @@ -5,8 +5,9 @@ CREATE TABLE IF NOT EXISTS edc_vocabulary created_at BIGINT NOT NULL, json_schema JSON DEFAULT '{}', name VARCHAR NOT NULL, - category VARCHAR NOT NULL, - PRIMARY KEY (id) + connector_id VARCHAR NOT NULL, + category VARCHAR NOT NULL + PRIMARY KEY (id, connector_id) ); -COMMENT ON COLUMN edc_vocabulary.json_schema IS 'JSON Schema with the vocabulary'; +COMMENT ON COLUMN edc_vocabulary.json_schema IS 'JSON Schema with the vocabulary'; \ No newline at end of file