Skip to content

Commit

Permalink
Merge pull request #24 from CBIIT/feature/no-ref/add-rollback-to-chan…
Browse files Browse the repository at this point in the history
…gesets

feat: add rollback to model changelogs
  • Loading branch information
nelsonwmoore authored Feb 12, 2024
2 parents c50caea + ec666a8 commit 2f58b3c
Show file tree
Hide file tree
Showing 22 changed files with 393,760 additions and 182,862 deletions.
3 changes: 1 addition & 2 deletions changelogs/changelog.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[changelog]
changeset_id = 94949

changeset_id = 98482
2 changes: 1 addition & 1 deletion changelogs/mappings/DSS/dss_map_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet id="43553" author="NWM" runAlways="true">
<changeSet id="98307" author="NWM" runAlways="true">
<neo4j:cypher>MATCH (n2 {handle:'administrative',model:'DSS'})-[:has_property]-&gt;(n0:property {handle:'data_file_checksum_type',model:'DSS'}), (n3 {handle:'CONST',model:'C2M2'})-[:has_property]-&gt;(n1:property {handle:'md5',model:'C2M2'}) OPTIONAL MATCH (n0)-[r1:has_concept]-&gt;(n4:concept), (n4)-[r2:has_tag]-&gt;(n6:tag {key:'mapping_source',value:'DSS'}) OPTIONAL MATCH (n1)-[r3:has_concept]-&gt;(n5:concept), (n5)-[r4:has_tag]-&gt;(n7:tag {key:'mapping_source',value:'DSS'}) WITH n0, n1, n4, n5 FOREACH (_ IN CASE WHEN n4 IS NOT NULL AND n5 IS NULL THEN [1] ELSE [] END | MERGE (n1)-[r5:has_concept]-&gt;(n4) ) FOREACH (_ IN CASE WHEN n4 IS NULL AND n5 IS NOT NULL THEN [1] ELSE [] END | MERGE (n0)-[r6:has_concept]-&gt;(n5) ) FOREACH (_ IN CASE WHEN n4 IS NULL AND n5 IS NULL THEN [1] ELSE [] END | CREATE (n8:concept {_commit:'a8618179a9300e98de0d566e8a1b86695e0b3479'})-[r7:has_tag]-&gt;(n9:tag {key:'mapping_source',value:'DSS',_commit:'a8618179a9300e98de0d566e8a1b86695e0b3479'}) CREATE (n0)-[r8:has_concept {_commit:'a8618179a9300e98de0d566e8a1b86695e0b3479'}]-&gt;(n8) CREATE (n1)-[r9:has_concept {_commit:'a8618179a9300e98de0d566e8a1b86695e0b3479'}]-&gt;(n8) )</neo4j:cypher>
</changeSet>
<changeSet id="43554" author="NWM" runAlways="true">
Expand Down
528 changes: 528 additions & 0 deletions changelogs/mappings/DSS/dss_map_changelog_8adf31e.xml

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions changelogs/mdb_setup_changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@
]]></neo4j:cypher>
</changeSet>
<changeSet id="16" author="NWM">
<neo4j:cypher>CREATE CONSTRAINT node_unique_attrs IF NOT EXISTS FOR (n:node) REQUIRE (n.model, n.handle) IS UNIQUE</neo4j:cypher>
</changeSet>
<!-- <changeSet id="17" author="NWM">
<neo4j:cypher>CREATE CONSTRAINT property_unique_attrs IF NOT EXISTS FOR (p:property) REQUIRE (p.model, p.handle, p.desc) IS UNIQUE</neo4j:cypher>
</changeSet> -->
<!-- <changeSet id="18" author="NWM"> -->
<!-- <neo4j:cypher>CREATE CONSTRAINT term_unique_attrs IF NOT EXISTS FOR (t:term) REQUIRE (t.origin_name, t.origin_id, t.origin_version) IS UNIQUE</neo4j:cypher> -->
<!-- </changeSet> -->
<neo4j:cypher>CREATE CONSTRAINT node_unique_attrs IF NOT EXISTS FOR (n:node) REQUIRE (n.model, n.handle) IS UNIQUE</neo4j:cypher>
</changeSet>
</databaseChangeLog>
53,655 changes: 0 additions & 53,655 deletions changelogs/models/CCDI/ccdi_changelog_1.7.1.xml

This file was deleted.

75,959 changes: 75,959 additions & 0 deletions changelogs/models/CCDI/ccdi_changelog_1.7.2.xml

Large diffs are not rendered by default.

2,157 changes: 0 additions & 2,157 deletions changelogs/models/CDS/cds_changelog.xml

This file was deleted.

57,355 changes: 57,355 additions & 0 deletions changelogs/models/CDS/cds_changelog_1.2.0.xml

Large diffs are not rendered by default.

3,636 changes: 0 additions & 3,636 deletions changelogs/models/CTDC/ctdc_changelog.xml

This file was deleted.

9,403 changes: 9,403 additions & 0 deletions changelogs/models/CTDC/ctdc_changelog_9880861.xml

Large diffs are not rendered by default.

258 changes: 0 additions & 258 deletions changelogs/models/CTDC/ctdc_diff_changelog_ec1035f.xml

This file was deleted.

1,941 changes: 0 additions & 1,941 deletions changelogs/models/DSS/dss_changelog.xml

This file was deleted.

2,879 changes: 2,879 additions & 0 deletions changelogs/models/DSS/dss_changelog_0.0.1.xml

Large diffs are not rendered by default.

101,514 changes: 0 additions & 101,514 deletions changelogs/models/GDC/gdc_changelog.xml

This file was deleted.

135,351 changes: 135,351 additions & 0 deletions changelogs/models/GDC/gdc_changelog_cbe1102.xml

Large diffs are not rendered by default.

85,887 changes: 85,887 additions & 0 deletions changelogs/models/HTAN/htan_changelog_df49c65.xml

Large diffs are not rendered by default.

6,959 changes: 0 additions & 6,959 deletions changelogs/models/ICDC/icdc_changelog.xml

This file was deleted.

9,423 changes: 9,423 additions & 0 deletions changelogs/models/ICDC/icdc_changelog_dc6d5b0.xml

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions changelogs/models/create_model_node_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?xml version='1.0' encoding='UTF-8'?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet id="19" author="MAJ">
<changeSet id="17" author="MAJ">
<neo4j:cypher>MERGE (:model {handle: 'CCDI', name: 'CCDI', repository: 'https://github.com/CBIIT/ccdi-model'})</neo4j:cypher>
</changeSet>
<changeSet id="20" author="MAJ">
<changeSet id="18" author="MAJ">
<neo4j:cypher>MERGE (:model {handle: 'CDS', name: 'CDS', repository: 'https://github.com/CBIIT/cds-model'})</neo4j:cypher>
</changeSet>
<changeSet id="21" author="MAJ">
<changeSet id="19" author="MAJ">
<neo4j:cypher>MERGE (:model {handle: 'DSS', name: 'DSS', repository: 'https://github.com/CBIIT/dss-model'})</neo4j:cypher>
</changeSet>
<changeSet id="22" author="MAJ">
<changeSet id="20" author="MAJ">
<neo4j:cypher>MERGE (:model {handle: 'GDC', name: 'GDC', repository: 'https://github.com/CBIIT/gdc-model'})</neo4j:cypher>
</changeSet>
<changeSet id="23" author="MAJ">
<changeSet id="21" author="MAJ">
<neo4j:cypher>MERGE (:model {handle: 'ICDC', name: 'ICDC', repository: 'https://github.com/CBIIT/icdc-model-tool'})</neo4j:cypher>
</changeSet>
<changeSet id="44939" author="NWM">
<changeSet id="22" author="NWM">
<neo4j:cypher>MERGE (:model {handle: 'CTDC', name: 'CTDC', repository: 'https://github.com/CBIIT/ctdc-model'})</neo4j:cypher>
</changeSet>
<changeSet id="73041" author="NWM">
<changeSet id="23" author="NWM">
<neo4j:cypher>MERGE (:model {handle: 'HTAN', name: 'HTAN', repository: 'https://github.com/CBIIT/htan-model'})</neo4j:cypher>
</changeSet>
<changeSet id="77277" author="NWM">
<changeSet id="24" author="NWM">
<neo4j:cypher>MERGE (:model {handle: 'mCODE', name: 'mCODE', repository: 'https://github.com/CBIIT/mcode-model'})</neo4j:cypher>
</changeSet>
</databaseChangeLog>
20 changes: 10 additions & 10 deletions changelogs/models/create_origin_node_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?xml version='1.0' encoding='UTF-8'?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet id="24" author="MAJ">
<changeSet id="25" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'CCDI', desc:'Childrens Cancer Data Initiative', url: 'https://github.com/CBIIT/ccdi-model'})</neo4j:cypher>
</changeSet>
<changeSet id="25" author="MAJ">
<changeSet id="26" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'CDS', desc:'Cancer Data Service', url: 'https://github.com/CBIIT/cds-model'})</neo4j:cypher>
</changeSet>
<changeSet id="26" author="MAJ">
<changeSet id="27" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'DSS', desc:'Data Standards Services', url: 'https://github.com/CBIIT/dss-model'})</neo4j:cypher>
</changeSet>
<changeSet id="27" author="MAJ">
<changeSet id="28" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'GDC', desc:'Genomic Data Commons', url: 'https://github.com/CBIIT/gdc-model'})</neo4j:cypher>
</changeSet>
<changeSet id="28" author="MAJ">
<changeSet id="29" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'NCIt', desc:'NCI Thesaurus', url: 'https://ncit.nci.nih.gov'})</neo4j:cypher>
</changeSet>
<changeSet id="29" author="MAJ">
<changeSet id="30" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'caDSR', desc:'Cancer Data Standards Repository', url: 'https://cadsr.cancer.gov'})</neo4j:cypher>
</changeSet>
<changeSet id="30" author="MAJ">
<changeSet id="31" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'MeSH', desc: 'Medical Subject Headings (NLM)', url:'https://www.ncbi.nlm.nih.gov/mesh'})</neo4j:cypher>
</changeSet>
<changeSet id="31" author="MAJ">
<changeSet id="32" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'PubMedCentral', desc: 'PubMed Central', url:'https://www.ncbi.nlm.nih.gov/pmc/'})</neo4j:cypher>
</changeSet>
<changeSet id="32" author="MAJ">
<changeSet id="33" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'OBI', desc: 'Ontology of Biomedical Investigations', url:'https://www.ebi.ac.uk/ols/ontologies/obi'})</neo4j:cypher>
</changeSet>
<changeSet id="33" author="MAJ">
<changeSet id="34" author="MAJ">
<neo4j:cypher>MERGE (:origin {name: 'HTAN', desc: 'Human Tumor Atlas Network', url:'https://humantumoratlas.org/'})</neo4j:cypher>
</changeSet>
</databaseChangeLog>
Loading

0 comments on commit 2f58b3c

Please sign in to comment.