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

Fix migration to DB version 242 from gvmd 20.08 #1498

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Apr 19, 2021

What:
Migration of the vt_severities is skipped if the table does not exist.

Why:
When running the migration to DB version 242, the vt_severities table
only exists when migrating from a 21.04 development version, so the
migration for that table must be skipped if it does not exist.

Closes #1497

How did you test it:
By creating a new database, running gvmd 20.08 to set it up and load the feed data, then migrating to 21.04.

Checklist:

When running the migration to DB version 242, the vt_severities table
only exists when migrating from a 21.04 development version, so the
migration for that table must be skipped if it does not exist.
@timopollmeier timopollmeier marked this pull request as ready for review April 19, 2021 12:09
@timopollmeier timopollmeier requested a review from a team as a code owner April 19, 2021 12:09
@nichtsfrei nichtsfrei merged commit da532c7 into greenbone:gvmd-21.04 Apr 19, 2021
@timopollmeier timopollmeier added the backport-to-main This pull request will be ported to the master branch label Apr 20, 2021
timopollmeier added a commit that referenced this pull request Apr 20, 2021
Fix migration to DB version 242 from gvmd 20.08 (backport #1498)
@timopollmeier timopollmeier deleted the migration-fix branch October 15, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-main This pull request will be ported to the master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants