We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d97cd9 commit 4d423caCopy full SHA for 4d423ca
setup/src/Magento/Setup/Validator/DbValidator.php
@@ -15,6 +15,9 @@
15
*/
16
class DbValidator
17
{
18
+
19
+ const DB_PREFIX_LENGTH = 10;
20
21
/**
22
* DB connection factory
23
*
@@ -47,6 +50,12 @@ public function checkDatabaseTablePrefix($prefix)
47
50
throw new \InvalidArgumentException('Please correct the table prefix format.');
48
51
}
49
52
53
+ if (strlen($prefix) > self::DB_PREFIX_LENGTH) {
54
+ throw new \InvalidArgumentException(
55
+ 'Table prefix length can\'t be more then ' . self::DB_PREFIX_LENGTH . ' characters.'
56
+ );
57
+ }
58
59
return true;
60
61
0 commit comments