We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7993d30 commit 2fdfc4dCopy full SHA for 2fdfc4d
templates/container.class.tpl
@@ -33,7 +33,7 @@ class %%CLASSNAME%% extends CommonDBTM
33
if ($DB->numrows($result) > 0) {
34
while ($data = $DB->fetchAssoc($result)) {
35
//set default value for type 'glpi_item'
36
- if (str_starts_with($data['Field'], 'itemtype_')) {
+ if (str_starts_with($data['Field'], 'itemtype_') && $data['Default'] != 'NULL') {
37
$migration->changeField($table, $data['Field'], $data['Field'], "varchar(100) DEFAULT NULL");
38
$migration->migrationOneTable(self::getTable());
39
}
0 commit comments