mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix: ON DELETE CASCADE is forbidden.
Conflicts: htdocs/install/mysql/migration/3.6.0-3.7.0.sql test/phpunit/SqlTest.php
This commit is contained in:
@@ -149,11 +149,15 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$result=strpos($filecontent,'`');
|
||||
print __METHOD__." Result for checking we don't have back quote = ".$result."\n";
|
||||
$this->assertTrue($result===false);
|
||||
$this->assertTrue($result===false, 'Found ON back quote. Bad.');
|
||||
|
||||
$result=strpos($filecontent,'int(');
|
||||
print __METHOD__." Result for checking we don't have back 'int(' instead of integer = ".$result."\n";
|
||||
$this->assertTrue($result===false);
|
||||
print __METHOD__." Result for checking we don't have 'int(' instead of 'integer' = ".$result."\n";
|
||||
$this->assertTrue($result===false, 'Found int(x) instead of integer. Bad.');
|
||||
|
||||
$result=strpos($filecontent,'ON DELETE CASCADE');
|
||||
print __METHOD__." Result for checking we don't have 'ON DELETE CASCADE' = ".$result."\n";
|
||||
$this->assertTrue($result===false, 'Found ON DELETE CASCADE. Bad.');
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user