BUG 9716 Need to execute several times ./processmaker upgrade... SOLVED

- Was needed modified more times the fields with value default = '' .
- Was add validation.
This commit is contained in:
Marco Antonio Nina
2012-09-26 14:48:28 -04:00
parent 7048a4b1c7
commit 149988a128

View File

@@ -150,7 +150,7 @@ class database extends database_base {
}
}
else {
if (isset($aParameters['Default']) && $aParameters['Default'] != '') {
if (isset($aParameters['Default'])) {
$sSQL .= " DEFAULT '" . $aParameters['Default'] . "'";
}
}
@@ -195,7 +195,7 @@ class database extends database_base {
//}
//else {
if (isset($aParameters['Default'])) {
if ( trim($aParameters['Default'] == '') && $aParameters['Type'] == 'datetime' ) {
if ( trim($aParameters['Default']) == '' && $aParameters['Type'] == 'datetime' ) {
//do nothing
}
else