2
0
forked from Wavyzz/dolibarr

Sanitize DDL instructions

This commit is contained in:
Laurent Destailleur
2024-03-21 12:45:58 +01:00
parent 171c32be34
commit aa77573cd9
5 changed files with 89 additions and 83 deletions

View File

@@ -66,7 +66,7 @@ class DoliDBTest extends CommonClassTest
$res = $db->DDLDropTable($namedic);
$columns = array(
'rowid' => array('type' => 'integer', 'value' => 11),
'rowid' => array('type' => 'integer', 'value' => 11, 'AUTO_INCREMENT PRIMARY KEY'),
'code' => array('type' => 'varchar', 'value' => 255, 'null'=>'NOT NULL'),
'label' => array('type' => 'varchar', 'value' => 255, 'null'=>'NOT NULL'),
'position' => array('type' => 'integer', 'value' => 11, 'null'=>'NULL'),