-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/4.5.0' into main
- Loading branch information
Showing
334 changed files
with
10,405 additions
and
7,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Core Info | ||
version=4.4.1 | ||
version=4.5.0 | ||
group=uk.ac.ox.softeng.maurodatamapper | ||
# Gradle | ||
gradleVersion=6.7.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
mdm-core/grails-app/conf/db/migration/core/V2_8_0__rename_catalogue_item_to_multi_facet.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ALTER TABLE core.annotation | ||
RENAME COLUMN catalogue_item_domain_type TO multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.annotation | ||
RENAME COLUMN catalogue_item_id TO multi_facet_aware_item_id; | ||
|
||
ALTER TABLE core.metadata | ||
RENAME COLUMN catalogue_item_domain_type TO multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.metadata | ||
RENAME COLUMN catalogue_item_id TO multi_facet_aware_item_id; | ||
|
||
ALTER TABLE core.reference_file | ||
RENAME COLUMN catalogue_item_domain_type TO multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.reference_file | ||
RENAME COLUMN catalogue_item_id TO multi_facet_aware_item_id; | ||
|
||
ALTER TABLE core.rule | ||
RENAME COLUMN catalogue_item_domain_type TO multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.rule | ||
RENAME COLUMN catalogue_item_id TO multi_facet_aware_item_id; | ||
|
||
ALTER TABLE core.semantic_link | ||
RENAME COLUMN catalogue_item_domain_type TO multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.semantic_link | ||
RENAME COLUMN catalogue_item_id TO multi_facet_aware_item_id; | ||
ALTER TABLE core.semantic_link | ||
RENAME COLUMN target_catalogue_item_domain_type TO target_multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.semantic_link | ||
RENAME COLUMN target_catalogue_item_id TO target_multi_facet_aware_item_id; | ||
|
||
ALTER TABLE core.version_link | ||
RENAME COLUMN catalogue_item_domain_type TO multi_facet_aware_item_domain_type; | ||
ALTER TABLE core.version_link | ||
RENAME COLUMN catalogue_item_id TO multi_facet_aware_item_id; |
44 changes: 44 additions & 0 deletions
44
mdm-core/grails-app/conf/db/migration/core/V2_8_1__containers_add_facets.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
CREATE TABLE core.join_classifier_to_facet ( | ||
classifier_id UUID NOT NULL, | ||
annotation_id UUID, | ||
rule_id UUID, | ||
semantic_link_id UUID, | ||
reference_file_id UUID, | ||
metadata_id UUID | ||
); | ||
|
||
CREATE TABLE core.join_folder_to_facet ( | ||
folder_id UUID NOT NULL, | ||
annotation_id UUID, | ||
rule_id UUID, | ||
semantic_link_id UUID, | ||
reference_file_id UUID, | ||
metadata_id UUID | ||
); | ||
|
||
ALTER TABLE IF EXISTS core.join_classifier_to_facet | ||
ADD CONSTRAINT FK3h1hax9omk9o62119jsc45m35 FOREIGN KEY (annotation_id) REFERENCES core.annotation; | ||
ALTER TABLE IF EXISTS core.join_classifier_to_facet | ||
ADD CONSTRAINT FK54j6lhkhnneag9rqsnchk9rwf FOREIGN KEY (classifier_id) REFERENCES core.classifier; | ||
ALTER TABLE IF EXISTS core.join_classifier_to_facet | ||
ADD CONSTRAINT FK1yihq7q1hhwm3f7jn4g7isg5k FOREIGN KEY (rule_id) REFERENCES core.rule; | ||
ALTER TABLE IF EXISTS core.join_classifier_to_facet | ||
ADD CONSTRAINT FKs9xsugq08k5ejrfha2540ups0 FOREIGN KEY (semantic_link_id) REFERENCES core.semantic_link; | ||
ALTER TABLE IF EXISTS core.join_classifier_to_facet | ||
ADD CONSTRAINT FK5owmrlff8c3f3bf2e7om5xkfj FOREIGN KEY (reference_file_id) REFERENCES core.reference_file; | ||
ALTER TABLE IF EXISTS core.join_classifier_to_facet | ||
ADD CONSTRAINT FK6531dcod746lwh2v7k4fatx7b FOREIGN KEY (metadata_id) REFERENCES core.metadata; | ||
|
||
|
||
ALTER TABLE IF EXISTS core.join_folder_to_facet | ||
ADD CONSTRAINT FKohkkmadsw0xtk5qs2mx0y0npo FOREIGN KEY (annotation_id) REFERENCES core.annotation; | ||
ALTER TABLE IF EXISTS core.join_folder_to_facet | ||
ADD CONSTRAINT FKibq4i08l0b0nkbopm8wjrdfd9 FOREIGN KEY (folder_id) REFERENCES core.folder; | ||
ALTER TABLE IF EXISTS core.join_folder_to_facet | ||
ADD CONSTRAINT FKml4kb6cf0wr79sopbu6fglets FOREIGN KEY (rule_id) REFERENCES core.rule; | ||
ALTER TABLE IF EXISTS core.join_folder_to_facet | ||
ADD CONSTRAINT FKsuj7eo7stfn56f1b0ci16uqc4 FOREIGN KEY (semantic_link_id) REFERENCES core.semantic_link; | ||
ALTER TABLE IF EXISTS core.join_folder_to_facet | ||
ADD CONSTRAINT FK6bgvwj5n9a92tkoky84uaktlm FOREIGN KEY (reference_file_id) REFERENCES core.reference_file; | ||
ALTER TABLE IF EXISTS core.join_folder_to_facet | ||
ADD CONSTRAINT FK14o06qtiem74ycw6896javux7 FOREIGN KEY (metadata_id) REFERENCES core.metadata; |
18 changes: 18 additions & 0 deletions
18
mdm-core/grails-app/conf/db/migration/core/V2_8_2__remove_model_import_export.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
DO | ||
$$ | ||
DECLARE | ||
datamodel_schema_exists BOOLEAN := (SELECT TO_REGCLASS('datamodel.flyway_schema_history') IS NOT NULL); | ||
|
||
BEGIN | ||
-- If no datamodel schema then we can drop the tables at this point | ||
-- If datamodel schema then we will need to affect these changes in the datamodel migration | ||
IF datamodel_schema_exists = FALSE | ||
THEN | ||
DROP TABLE core.model_extend CASCADE; | ||
DROP TABLE core.model_import CASCADE; | ||
END IF; | ||
|
||
|
||
END; | ||
$$; | ||
; |
8 changes: 8 additions & 0 deletions
8
mdm-core/grails-app/conf/db/migration/core/V2_9_0__add_version_links_to_versioned_folder.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE core.join_versionedfolder_to_facet ( | ||
versionedfolder_id UUID NOT NULL, | ||
version_link_id UUID | ||
); | ||
ALTER TABLE IF EXISTS core.join_versionedfolder_to_facet | ||
ADD CONSTRAINT FKcdu99gvtth7g6q2glm329u7uu FOREIGN KEY (version_link_id) REFERENCES core.version_link; | ||
ALTER TABLE IF EXISTS core.join_versionedfolder_to_facet | ||
ADD CONSTRAINT FKsltt9c209xswibf8ocho4l8ly FOREIGN KEY (versionedfolder_id) REFERENCES core.folder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.