From b0438f717f98b10c516b34a512aceb4ba578a6b2 Mon Sep 17 00:00:00 2001 From: Robert Title Date: Wed, 28 Aug 2024 13:52:07 -0400 Subject: [PATCH] WOR-1810: Remove saturnAutoCreated label from Azure apps --- .../dsde/workbench/leonardo/liquibase/changelog.xml | 1 + ...move_saturnAutoCreated_label_from_azure_apps.xml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20240828_remove_saturnAutoCreated_label_from_azure_apps.xml diff --git a/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changelog.xml b/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changelog.xml index 0faf02dc49e..17028065374 100644 --- a/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changelog.xml +++ b/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changelog.xml @@ -117,4 +117,5 @@ + diff --git a/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20240828_remove_saturnAutoCreated_label_from_azure_apps.xml b/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20240828_remove_saturnAutoCreated_label_from_azure_apps.xml new file mode 100644 index 00000000000..7c30d092b2f --- /dev/null +++ b/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20240828_remove_saturnAutoCreated_label_from_azure_apps.xml @@ -0,0 +1,13 @@ + + + + + DELETE FROM LABEL l + JOIN APP a ON l.resourceId = a.id AND l.resourceType = 'app' + WHERE l.`key` = 'saturnAutoCreated' + AND a.appType in ('WORKFLOWS_APP', 'CROMWELL_RUNNER_APP'); + + + + +