Skip to content

Commit

Permalink
Change: Automatically update pg-gvm in check_db_extensions
Browse files Browse the repository at this point in the history
Merge pull request #1820 from timopollmeier/update-pg-gvm
  • Loading branch information
timopollmeier authored May 4, 2022
2 parents f2228a3 + 61fc797 commit 4fbc793
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 4fbc793

Please sign in to comment.