diff --git a/CHANGELOG.md b/CHANGELOG.md index 4735ea573..59dab244f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [21.4] (unreleased) ### Added -- Extend GMP for extended severities [#1326](https://github.com/greenbone/gvmd/pull/1326) [#1329](https://github.com/greenbone/gvmd/pull/1329) [#1359](https://github.com/greenbone/gvmd/pull/1359) [#1371](https://github.com/greenbone/gvmd/pull/1371) [#1477](https://github.com/greenbone/gvmd/pull/1477) +- Extend GMP for extended severities [#1326](https://github.com/greenbone/gvmd/pull/1326) [#1329](https://github.com/greenbone/gvmd/pull/1329) [#1359](https://github.com/greenbone/gvmd/pull/1359) [#1371](https://github.com/greenbone/gvmd/pull/1371) [#1477](https://github.com/greenbone/gvmd/pull/1477) [#1488](https://github.com/greenbone/gvmd/pull/1488) - Parameter `--db-user` to set a database user [#1327](https://github.com/greenbone/gvmd/pull/1327) - Add `allow_simultaneous_ips` field for targets [#1346](https://github.com/greenbone/gvmd/pull/1346) [#1396](https://github.com/greenbone/gvmd/pull/1396) - Speed up GET_VULNS [#1354](https://github.com/greenbone/gvmd/pull/1354) [#1355](https://github.com/greenbone/gvmd/pull/1354) diff --git a/src/manage_migrators.c b/src/manage_migrators.c index 66cc93bf9..068df609c 100644 --- a/src/manage_migrators.c +++ b/src/manage_migrators.c @@ -2630,7 +2630,7 @@ migrate_241_to_242 () /* Change the vt_severities table to a CVSS score */ sql ("ALTER TABLE vt_severities ALTER COLUMN score" " SET DATA TYPE double precision;"); - sql ("UPDATE vt_severities SET score = round(score / 10.0, 1);"); + sql ("UPDATE vt_severities SET score = round((score / 10.0)::numeric, 1);"); /* Set the database version to 242. */