Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspect mysql version before failing when restoring a snapshot, #1170 #1176

Merged
merged 7 commits into from Oct 12, 2018

Conversation

andrewfrench
Copy link
Contributor

@andrewfrench andrewfrench commented Oct 11, 2018

The Problem/Issue/Bug:

#1170

How this PR Solves The Problem:

This allows the snapshot error help text method of recovery to work by inspecting the mysql version currently being used and only failing if the current database version requires the db_mariadb_version.txt file to exist.

Manual Testing Instructions:

  • Configure and start a project using ddev v1.2.0
  • Populate the database
  • ddev snapshot
  • ddev rm
  • Switch to ddev v1.3.0
  • ddev config
  • ddev start
  • ddev restore-snapshot <snapshot>; this will fail - below are the steps recommended in the help link
  • ddev rm
  • Edit the database image in .ddev/config.yaml to be v1.2.0
  • ddev restore-snapshot <snapshot>; this should succeed
  • ddev rm
  • Edit the database image in .ddev/config.yaml to be v1.3.0, or comment out the specific image to use the default
  • ddev start
  • Project should start successfully
  • ddev logs -s db will show "Running mysql_upgrade"

Automated Testing Overview:

Related Issue Link(s):

#1170

@andrewfrench andrewfrench added this to the v1.3.0 milestone Oct 11, 2018
@andrewfrench andrewfrench self-assigned this Oct 11, 2018
@andrewfrench andrewfrench changed the title Attempt to determine mysql version before failing to restore snapshot, #1170 Inspect mysql version before failing when restoring a snapshot, #1170 Oct 11, 2018
Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, thanks. Hopefully it will get us over this bump with our users.

@andrewfrench andrewfrench merged commit bf8eaea into ddev:master Oct 12, 2018
@andrewfrench andrewfrench deleted the 2018-10-11_restore-snapshot branch October 12, 2018 00:48
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.

None yet

2 participants