From a99f685d154f7e98defb6ca62e0f7343f0d9a551 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 28 Sep 2023 08:34:08 +0200 Subject: [PATCH] Add missing pgsql `USAGE` privilege --- library/Icinga/Application/MigrationManager.php | 2 +- modules/setup/library/Setup/WebWizard.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/MigrationManager.php b/library/Icinga/Application/MigrationManager.php index 46e19909c..d040f2422 100644 --- a/library/Icinga/Application/MigrationManager.php +++ b/library/Icinga/Application/MigrationManager.php @@ -207,7 +207,7 @@ final class MigrationManager implements Countable */ public function getRequiredDatabasePrivileges(): array { - return ['CREATE','SELECT','INSERT','UPDATE','DELETE','DROP','ALTER','CREATE VIEW','INDEX','EXECUTE']; + return ['CREATE','SELECT','INSERT','UPDATE','DELETE','DROP','ALTER','CREATE VIEW','INDEX','EXECUTE','USAGE']; } /** diff --git a/modules/setup/library/Setup/WebWizard.php b/modules/setup/library/Setup/WebWizard.php index 0485cecec..f3b5557c8 100644 --- a/modules/setup/library/Setup/WebWizard.php +++ b/modules/setup/library/Setup/WebWizard.php @@ -83,6 +83,7 @@ class WebWizard extends Wizard implements SetupWizard 'ALTER', 'DROP', 'INDEX', + 'USAGE', // PostgreSQL 'TEMPORARY', // PostgreSql 'CREATE TEMPORARY TABLES' // MySQL );