Skip to content

Commit

Permalink
Add runAlways and link in both cromwell and metadata dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjllanwarne committed Sep 18, 2023
1 parent c4c430f commit ce1ec07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion database/migration/src/main/resources/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<include file="changesets/assign_table_owner_for_workflows_app_cromwell.xml" relativeToChangelogFile="true" />
<include file="changesets/init_role.xml" relativeToChangelogFile="true" />
<include file="changesets/db_schema.xml" relativeToChangelogFile="true" />
<include file="changesets/symbol_iteration_null.xml" relativeToChangelogFile="true" />
<include file="changesets/wdl_and_inputs.xml" relativeToChangelogFile="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
<property name="sharedCromwellDbRole" value=""/>

<!--
This changeset will be only applied when 'sharedCromwellDbRole' property is set.
Currently, it is only set for the shared Cromwell service in the WORKFLOWS app.
For all the other Cromwell servers this should be a no-op.
This changeset will be applied whenever the 'sharedCromwellDbRole' property is set.
It runs every time to ensure the role is set correctly before any other changesets.
-->
<changeSet author="sshah" id="assign_table_owner_for_workflows_app_cromwell" dbms="postgresql">
<changeSet runAlways="true" author="sshah" id="init_role" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<!-- check that 'sharedCromwellDbRole' role is set -->
<not>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<include file="metadata_changesets/init_role.xml" relativeToChangelogFile="true" />
<include file="metadata_changesets/move_sql_metadata_changelog.xml" relativeToChangelogFile="true" />
<include file="changesets/change_max_size_label_entry.xml" relativeToChangelogFile="true" />
<include file="metadata_changesets/delete_duplicate_custom_labels.xml" relativeToChangelogFile="true"/>
Expand Down

0 comments on commit ce1ec07

Please sign in to comment.