Skip to content

Commit 4f8800b

Browse files
author
Ivan Gavryshko
committed
MAGETWO-31904: There is no validation for 'Table prefix' on Step 2: Add a Database durin
- Fixed messages (approved from Daniel) - Fixed method comment.
1 parent cacd47e commit 4f8800b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ public function checkDatabaseConnection($dbName, $dbHost, $dbUser, $dbPass = '')
758758
}
759759

760760
/**
761-
* Check if database table is valid
761+
* Check if database table prefix is valid
762762
*
763763
* @param string $prefix
764764
* @return boolean
@@ -767,7 +767,7 @@ public function checkDatabaseConnection($dbName, $dbHost, $dbUser, $dbPass = '')
767767
public function checkDatabaseTablePrefix($prefix)
768768
{
769769
if ($prefix !== '' && !preg_match('/^([[:alnum:]]+)([[:alnum:]_]+)$/', $prefix)) {
770-
throw new \InvalidArgumentException('Table prefix is in wrong format.');
770+
throw new \InvalidArgumentException('Please correct the table prefix format.');
771771
}
772772

773773
return true;

0 commit comments

Comments
 (0)