The Wayback Machine - https://web.archive.org/web/20250614202803/https://github.com/github/backup-utils/pull/783
Skip to content

Move GitHub Connect reset to after ghe-config-apply #783

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

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

lildude
Copy link
Member

@lildude lildude commented Sep 16, 2021

During testing, I discovered that the GitHub Connect reset logic I introduced in #770 fails when restoring a pre-3.0 snapshot to a 3.0 or later instance.

The reason for the failure is because the reset logic uses Rails functionality which comes with the assumption all migrations have happened and thus the database structure matches what the Rails code expects.

This PR fixes this by moving the GitHub Connect reset step to after ghe-config-apply has been run and this ensures all the migrations have run too.

/cc @domofactor

@domofactor domofactor self-requested a review September 16, 2021 11:51
@domofactor domofactor merged commit 0280d87 into master Sep 16, 2021
@domofactor domofactor deleted the lildude/move-connect-cleanup branch September 16, 2021 11:59
@domofactor domofactor added the bug label Sep 16, 2021
@github github deleted a comment Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants