Skip to content

Commit

Permalink
Merge pull request #1534 from greenbone/mergify/bp/gvmd-21.04/pr-1533
Browse files Browse the repository at this point in the history
Migrate GMP Scanners to OSP Sensors (backport #1533)
  • Loading branch information
timopollmeier authored May 25, 2021
2 parents 1276768 + b811632 commit e73382f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix migration to DB version 242 from gvmd 20.08 [#1498](https://github.com/greenbone/gvmd/pull/1498)
- Update subject alternative name in certificate generation [#1503](https://github.com/greenbone/gvmd/pull/1503)
- Fix whole-only config family selection [#1517](https://github.com/greenbone/gvmd/pull/1517)
- Migrate GMP Scanners to OSP Sensors [#1533](https://github.com/greenbone/gvmd/pull/1533)

[21.4.0]: https://github.com/greenbone/gvmd/compare/v21.4.0...gvmd-21.04

Expand Down
6 changes: 3 additions & 3 deletions src/manage_migrators.c
Original file line number Diff line number Diff line change
Expand Up @@ -2342,9 +2342,9 @@ migrate_233_to_234 ()
" DROP column slave_host,"
" DROP column slave_port;");

/* Convert existing GMP Scanners to OSP Scanners. */
sql ("UPDATE scanners SET type = 2 WHERE type = 4;");
sql ("UPDATE scanners_trash SET type = 2 WHERE type = 4;");
/* Convert existing GMP Scanners to OSP Sensors. */
sql ("UPDATE scanners SET type = 5 WHERE type = 4;");
sql ("UPDATE scanners_trash SET type = 5 WHERE type = 4;");

/* Set the database version to 234. */

Expand Down

0 comments on commit e73382f

Please sign in to comment.