Skip to content

Commit c268d58

Browse files
author
Nino Aratari
committed
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).
1 parent ae6a297 commit c268d58

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

setup/src/Magento/Setup/Test/Unit/Validator/DbValidatorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public function testCheckDatabaseConnection()
5555
['DELETE'],
5656
['CREATE'],
5757
['DROP'],
58-
['REFERENCES'],
5958
['INDEX'],
6059
['ALTER'],
6160
['CREATE TEMPORARY TABLES'],
@@ -65,7 +64,6 @@ public function testCheckDatabaseConnection()
6564
['SHOW VIEW'],
6665
['CREATE ROUTINE'],
6766
['ALTER ROUTINE'],
68-
['EVENT'],
6967
['TRIGGER'],
7068
];
7169
$accessibleDbs = ['some_db', 'name', 'another_db'];

setup/src/Magento/Setup/Validator/DbValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
146146
'DELETE',
147147
'CREATE',
148148
'DROP',
149-
'REFERENCES',
150149
'INDEX',
151150
'ALTER',
152151
'CREATE TEMPORARY TABLES',
@@ -156,7 +155,6 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
156155
'SHOW VIEW',
157156
'CREATE ROUTINE',
158157
'ALTER ROUTINE',
159-
'EVENT',
160158
'TRIGGER'
161159
];
162160

0 commit comments

Comments
 (0)