Skip to content

fix: prevent db/backup from exporting triggeres twice#15854

Closed
gopeter wants to merge 1 commit intocraftcms:5.xfrom
gopeter:fix-mysqldump
Closed

fix: prevent db/backup from exporting triggeres twice#15854
gopeter wants to merge 1 commit intocraftcms:5.xfrom
gopeter:fix-mysqldump

Conversation

@gopeter
Copy link
Copy Markdown
Contributor

@gopeter gopeter commented Oct 8, 2024

Description

If plugins include triggers in their tables, using craft db/backup exports them twice, leading into importing problems since triggers have to be imported after the data to prevent their execution.

@brandonkelly brandonkelly requested a review from angrybrad October 8, 2024 16:33
@brandonkelly
Copy link
Copy Markdown
Member

Thanks for the PR! Cherry-picked your commit into the 4.x branch instead, as we decided it makes sense to fix it there as well.

@brandonkelly
Copy link
Copy Markdown
Member

Craft 4.12.6 and 5.4.7 are out with that fix. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants