From 51f0fce03020471d87e4df610dd5b4739ce88bbc Mon Sep 17 00:00:00 2001 From: LizBaldo Date: Thu, 19 Dec 2024 10:58:02 -0500 Subject: [PATCH] pin mysql to 8.4 for local leo and unit tests --- .github/workflows/unit_test.yml | 2 +- docker/run-mysql.sh | 4 ++-- .../leonardo/liquibase/changesets/20170811_label.xml | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 6ee96181d76..3300096aab8 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -21,7 +21,7 @@ jobs: services: mysql: - image: mysql:8.0.40 + image: mysql:8.4 env: MYSQL_ROOT_PASSWORD: leonardo-test MYSQL_USER: leonardo-test diff --git a/docker/run-mysql.sh b/docker/run-mysql.sh index 4bd2da4d11a..4d268d8bd13 100755 --- a/docker/run-mysql.sh +++ b/docker/run-mysql.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# The CloudSQL console simply states "MySQL 8.0" so we may not match the minor version number -MYSQL_VERSION=8.0.40 +# The CloudSQL console simply states "MySQL 8.4" so we may not match the minor version number +MYSQL_VERSION=8.4 start() { echo "attempting to remove old $CONTAINER container..." diff --git a/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20170811_label.xml b/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20170811_label.xml index 7fc63823529..2590074f6a5 100644 --- a/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20170811_label.xml +++ b/http/src/main/resources/org/broadinstitute/dsde/workbench/leonardo/liquibase/changesets/20170811_label.xml @@ -1,6 +1,12 @@ + 8:1d8581dc0977ea88b1f006f6bc00f5b9 + + Mysql 8.4+ does not allow partial keys to be referenced for a foreign key anymore, see https://bugs.mysql.com/bug.php?id=114838. + This changeSet has been modified to reflect that; the validCheckSum is the checksum from when the flag did not need to be set because the default was OFF. + + SET restrict_fk_on_non_standard_key = OFF;