Skip to content

Commit 26de5e6

Browse files
authored
ENGCOM-4320: Change comment to "database" #21330
2 parents f700b18 + 7776df5 commit 26de5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
166166
return true;
167167
}
168168

169-
// check table privileges
169+
// check database privileges
170170
$schemaPrivilegesQuery = "SELECT PRIVILEGE_TYPE FROM SCHEMA_PRIVILEGES " .
171171
"WHERE '$dbName' LIKE TABLE_SCHEMA AND REPLACE(GRANTEE, '\'', '') = current_user()";
172172
$grantInfo = $connection->query($schemaPrivilegesQuery)->fetchAll(\PDO::FETCH_NUM);
@@ -175,7 +175,7 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
175175
}
176176

177177
$errorMessage = 'Database user does not have enough privileges. Please make sure '
178-
. implode(', ', $requiredPrivileges) . " privileges are granted to table '{$dbName}'.";
178+
. implode(', ', $requiredPrivileges) . " privileges are granted to database '{$dbName}'.";
179179
throw new \Magento\Setup\Exception($errorMessage);
180180
}
181181

0 commit comments

Comments
 (0)