From c268d5808e130b863f001375c56dfe16733428ab Mon Sep 17 00:00:00 2001 From: Nino Aratari Date: Fri, 3 Mar 2017 15:55:02 +0100 Subject: [PATCH] magento/magento2 #8616: Unused mysql privileges required even if not used/not needed at all - removed REFERENCES and EVENT privileges from DbValidator (also in Test Unit). --- setup/src/Magento/Setup/Test/Unit/Validator/DbValidatorTest.php | 2 -- setup/src/Magento/Setup/Validator/DbValidator.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/setup/src/Magento/Setup/Test/Unit/Validator/DbValidatorTest.php b/setup/src/Magento/Setup/Test/Unit/Validator/DbValidatorTest.php index b04b173e652b9..2c103e485d0d5 100644 --- a/setup/src/Magento/Setup/Test/Unit/Validator/DbValidatorTest.php +++ b/setup/src/Magento/Setup/Test/Unit/Validator/DbValidatorTest.php @@ -55,7 +55,6 @@ public function testCheckDatabaseConnection() ['DELETE'], ['CREATE'], ['DROP'], - ['REFERENCES'], ['INDEX'], ['ALTER'], ['CREATE TEMPORARY TABLES'], @@ -65,7 +64,6 @@ public function testCheckDatabaseConnection() ['SHOW VIEW'], ['CREATE ROUTINE'], ['ALTER ROUTINE'], - ['EVENT'], ['TRIGGER'], ]; $accessibleDbs = ['some_db', 'name', 'another_db']; diff --git a/setup/src/Magento/Setup/Validator/DbValidator.php b/setup/src/Magento/Setup/Validator/DbValidator.php index 16b916b6a6989..0aea906b5b1e8 100644 --- a/setup/src/Magento/Setup/Validator/DbValidator.php +++ b/setup/src/Magento/Setup/Validator/DbValidator.php @@ -146,7 +146,6 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn 'DELETE', 'CREATE', 'DROP', - 'REFERENCES', 'INDEX', 'ALTER', 'CREATE TEMPORARY TABLES', @@ -156,7 +155,6 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn 'SHOW VIEW', 'CREATE ROUTINE', 'ALTER ROUTINE', - 'EVENT', 'TRIGGER' ];