forked from Wavyzz/dolibarr
add new rule
This commit is contained in:
@@ -201,17 +201,14 @@ class CodingSqlTest extends PHPUnit\Framework\TestCase
|
||||
if ($dir == DOL_DOCUMENT_ROOT.'/install/mysql/migration')
|
||||
{
|
||||
// Test for migration files only
|
||||
}
|
||||
elseif ($dir == DOL_DOCUMENT_ROOT.'/install/mysql/data')
|
||||
} elseif ($dir == DOL_DOCUMENT_ROOT.'/install/mysql/data')
|
||||
{
|
||||
// Test for data files only
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (preg_match('/\.key\.sql$/', $file))
|
||||
{
|
||||
// Test for key files only
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// Test for non key files only
|
||||
$result=(strpos($filecontent, 'KEY ') && strpos($filecontent, 'PRIMARY KEY') == 0);
|
||||
print __METHOD__." Result for checking we don't have ' KEY ' instead of a sql file to create index = ".$result."\n";
|
||||
|
||||
Reference in New Issue
Block a user