Enable including database views into backups#2064
Merged
bryannielsen merged 3 commits intoExpressionEngine:6.devfrom Oct 24, 2022
Merged
Enable including database views into backups#2064bryannielsen merged 3 commits intoExpressionEngine:6.devfrom
bryannielsen merged 3 commits intoExpressionEngine:6.devfrom
Conversation
intoeetive
requested changes
Aug 16, 2022
Contributor
intoeetive
left a comment
There was a problem hiding this comment.
Hi @CreepCaster ,
thank you for your contribution - and sorry for late reaction.
I think the code is good addition - even though EE does not use MySQL views internally, the add-ons or custom site setups can use those.
However, it looks like the change from $this->getTables(); to $this->query->getTables(); is making setTablesToBackup() function impossible to use (and thus making CMS-specific backups not possible)
Is that something you'd be willing to look into more?
Contributor
Author
|
Hi @intoeetive , |
intoeetive
approved these changes
Sep 6, 2022
Contributor
|
Reviewed the code and tested - looks good and works well. Approving. @CreepCaster would you mind creating another PR from same branch into |
bryannielsen
approved these changes
Oct 24, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EE6 version of #2448
Overview
Fix backup for database views - previously it throws exception, because "CREATE TABLE" for "view" structure is incorrect.
https://dev.mysql.com/doc/refman/8.0/en/show-table-status.html
Nature of This Change
Is this backwards compatible?