2
0
forked from Wavyzz/dolibarr

Fix creation of fields tms into sql scripts

This commit is contained in:
Laurent Destailleur
2022-01-11 00:55:54 +01:00
parent 564bae453e
commit 00108589fd
23 changed files with 44 additions and 38 deletions

View File

@@ -218,6 +218,10 @@ class CodingSqlTest extends PHPUnit\Framework\TestCase
//print __METHOD__." Result for checking we don't have 'integer(' = ".$result."\n";
$this->assertTrue($result===false, 'Found value in parenthesis after the integer. It must be integer not integer(x) into '.$file.'. Bad.');
$result=strpos($filecontent, 'timestamp,');
//print __METHOD__." Result for checking we don't have 'NUMERIC(' = ".$result."\n";
$this->assertTrue($result===false, 'Found type timestamp with option DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP after into '.$file.'. Bad.');
if ($dir == DOL_DOCUMENT_ROOT.'/install/mysql/migration') {
// Test for migration files only
} elseif ($dir == DOL_DOCUMENT_ROOT.'/install/mysql/data') {