diff --git a/database/migration/src/main/resources/changelog.xml b/database/migration/src/main/resources/changelog.xml index 49d568766b3..09c613bd24b 100644 --- a/database/migration/src/main/resources/changelog.xml +++ b/database/migration/src/main/resources/changelog.xml @@ -93,6 +93,11 @@ + + + - + @@ -20,7 +20,7 @@ where '${sharedCromwellDbRole}' != '' and pg_roles.rolname = '${sharedCromwellDbRole}'; - SET ROLE TO ${sharedCromwellDbRole}; + REASSIGN OWNED BY CURRENT_USER TO ${sharedCromwellDbRole}; diff --git a/database/migration/src/main/resources/metadata_changesets/set_table_role.xml b/database/migration/src/main/resources/metadata_changesets/set_table_role.xml new file mode 120000 index 00000000000..8437e311cb2 --- /dev/null +++ b/database/migration/src/main/resources/metadata_changesets/set_table_role.xml @@ -0,0 +1 @@ +../changesets/set_table_role.xml \ No newline at end of file diff --git a/database/migration/src/main/resources/sql_metadata_changelog.xml b/database/migration/src/main/resources/sql_metadata_changelog.xml index 17c1a87eb98..e1f8c93e4bb 100644 --- a/database/migration/src/main/resources/sql_metadata_changelog.xml +++ b/database/migration/src/main/resources/sql_metadata_changelog.xml @@ -3,7 +3,6 @@ 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"> - @@ -20,5 +19,10 @@ + + +