diff --git a/src/main/resources/eu/dnetlib/dhp/schema/sql/eosc_patch.sql b/src/main/resources/eu/dnetlib/dhp/schema/sql/eosc_patch.sql new file mode 100644 index 0000000..3d09e63 --- /dev/null +++ b/src/main/resources/eu/dnetlib/dhp/schema/sql/eosc_patch.sql @@ -0,0 +1,9 @@ +-- Table to extend the datasource properties according to the eosc model +CREATE TABLE dsm_datasources_eosc( + id varchar(255) references dsm_datasources(id), + jurisdiction text[], + thematic boolean, + knowledge_graph boolean, + content_policies text[], + _dnet_resource_identifier_ varchar(2048) default ((('temp_'::text || md5((clock_timestamp())::text)) || '_'::text) || md5((random())::text)) +);