From 23c30cf74e777b1a2a1f727b4de3f95f6b7b8ac5 Mon Sep 17 00:00:00 2001 From: Peter Oesteritz Date: Tue, 8 Oct 2024 08:46:38 +0200 Subject: [PATCH 1/2] fix: prevent db/backup from exporting triggeres twice --- src/db/mysql/Schema.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/mysql/Schema.php b/src/db/mysql/Schema.php index a55ddb04eaf..187806dc342 100644 --- a/src/db/mysql/Schema.php +++ b/src/db/mysql/Schema.php @@ -200,6 +200,7 @@ public function getDefaultBackupCommand(?array $ignoreTables = null): string $schemaDump = (clone $baseCommand) ->addArg('--no-data') + ->addArg('--skip-triggers') ->addArg('--result-file=', '{file}') ->addArg('{database}'); From a11d5fb59bc91d20712ece4f575df5bbe67421cf Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Tue, 8 Oct 2024 09:52:04 -0700 Subject: [PATCH 2/2] Release note --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27430bbc0b8..d700f95fb28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fixed an error that could occur if a native element property was attempted to be eager-loaded. ([#15822](https://github.com/craftcms/cms/issues/15822)) - Fixed errors that could occur if a custom source or field condition referenced a custom field whose type had changed. ([#15850](https://github.com/craftcms/cms/issues/15850)) - Fixed a bug where disclosure menus weren’t sticking to their trigger element as it was scrolled, if it was within a slideout or other inline-scrollable container. ([#15852](https://github.com/craftcms/cms/issues/15852)) +- Fixed a bug where the default backup command for MySQL was exporting triggers twice. ([#15854](https://github.com/craftcms/cms/pull/15854)) - Fixed a missing authorization vulnerability. ## 4.12.5 - 2024-09-27