Skip to content

Commit

Permalink
Added and fix SQL file from last version
Browse files Browse the repository at this point in the history
  • Loading branch information
ppel-gmv committed Nov 18, 2024
1 parent 765a2f3 commit 1541175
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public JsonObject finalizeUpload(@FormDataParam("fileName") String fileName,
@FormDataParam("json") JsonObject assetJson) {

JsonObject expand = jsonLd.expand(assetJson).orElseThrow((f) -> new EdcException("Failed to expand request"));

validator.validate(EDC_ASSET_TYPE, expand).orElseThrow(ValidationFailureException::new);
Asset asset = transformerRegistry.transform(expand, Asset.class).orElseThrow(InvalidRequestException::new);

Expand Down
2 changes: 1 addition & 1 deletion resources/sql/060_vocabulary-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS edc_vocabulary
json_schema JSON DEFAULT '{}',
name VARCHAR NOT NULL,
connector_id VARCHAR NOT NULL,
category VARCHAR NOT NULL
category VARCHAR NOT NULL,
PRIMARY KEY (id, connector_id)
);

Expand Down
7 changes: 7 additions & 0 deletions resources/sql/080_access_token_data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS edc_accesstokendata
(
id VARCHAR NOT NULL PRIMARY KEY,
claim_token JSON NOT NULL,
data_address JSON NOT NULL,
additional_properties JSON DEFAULT '{}'
);

0 comments on commit 1541175

Please sign in to comment.