Commit 8748b35d authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#2669 - ISPConig template generator creates date columns with wrong format

parent a86d74a3
...@@ -664,6 +664,9 @@ class db extends mysqli ...@@ -664,6 +664,9 @@ class db extends mysqli
case 'blob': case 'blob':
return 'blob'; return 'blob';
break; break;
case 'date':
return 'date';
break;
} }
} }
......
...@@ -271,9 +271,9 @@ class tform_tpl_generator { ...@@ -271,9 +271,9 @@ class tform_tpl_generator {
$defaultValue = 'NULL'; $defaultValue = 'NULL';
break; break;
case 'DATE': case 'DATE':
$type = 'int64'; $type = 'date';
$typevalue = ''; $typevalue = '';
$defaultValue = ($field["default"] != '')?$field["default"]:'0'; $defaultValue = ($field["default"] != '')?$field["default"]:'0000-00-00';
break; break;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment