forked from Wavyzz/dolibarr
Fix creation of fields tms into sql scripts
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user