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

Help users that did not upgrade MySQL try two #12989

Merged
merged 1 commit into from Jul 14, 2021

Conversation

murrant
Copy link
Member

@murrant murrant commented Jun 25, 2021

Instead of dropping the table and re-creating. Just try adding the index. This way it won't fail if they somehow did the port_group_port migration first. And still should fail if the index cannot be created.

DO NOT DELETE THE UNDERLYING TEXT

Please note

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

@murrant murrant added the Schema label Jun 25, 2021
@Jellyfrog
Copy link
Member

Problem is this will just keep happening with the next migration, we should block even running the migrations command instead

@murrant
Copy link
Member Author

murrant commented Jun 28, 2021

No, it will keep hanging at this migration until they upgrade MySQL. This will try to add the index and it will fail. (I have not tested that)

@murrant
Copy link
Member Author

murrant commented Jun 28, 2021

We really can't block migrations as it will cause the ui to be unreachable if they are out of sync. We could have blocked updates entirely, but that needed to be done before this migration was committed. And so we are here.

@murrant murrant merged commit 1267f78 into librenms:master Jul 14, 2021
@murrant murrant deleted the help-users-try-two branch July 14, 2021 13:39
@librenms-bot
Copy link

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/21-7-0-changelog/16425/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants