Skip to content

Commit

Permalink
Automatically update pg-gvm in check_db_extensions
Browse files Browse the repository at this point in the history
The signature of the next_time_ical SQL function has changed so the
extension has to be updated.
  • Loading branch information
timopollmeier committed May 4, 2022
1 parent f2228a3 commit 61fc797
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/manage_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3010,6 +3010,9 @@ check_db_extensions ()
sql ("CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\"");
sql ("CREATE EXTENSION IF NOT EXISTS \"pgcrypto\"");
sql ("CREATE EXTENSION IF NOT EXISTS \"pg-gvm\"");
if (sql_int ("SELECT extversion != '1.1' FROM pg_extension"
" WHERE extname='pg-gvm';"))
sql ("ALTER EXTENSION \"pg-gvm\" UPDATE;");

sql ("RESET ROLE;");
return 0;
Expand Down

0 comments on commit 61fc797

Please sign in to comment.