forked from Wavyzz/dolibarr
Fix creation of fields tms into sql scripts
This commit is contained in:
@@ -305,6 +305,8 @@ function rebuildObjectSql($destdir, $module, $objectname, $newmask, $readdir = '
|
||||
$texttoinsert .= "\t".$key." ".$type;
|
||||
if ($key == 'rowid') {
|
||||
$texttoinsert .= ' AUTO_INCREMENT PRIMARY KEY';
|
||||
} elseif ($type == 'timestamp') {
|
||||
$texttoinsert .= ' DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP';
|
||||
}
|
||||
if ($key == 'entity') {
|
||||
$texttoinsert .= ' DEFAULT 1';
|
||||
|
||||
Reference in New Issue
Block a user