fix: controlli sul database
This commit is contained in:
parent
abdd552109
commit
3a52378a6f
|
@ -195,7 +195,10 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
|
|||
} else {
|
||||
$null = 'NULL';
|
||||
}
|
||||
$query .= str_replace('DEFAULT_GENERATED', ' ', $data[$table][$name]['extra']).' '.$null.' DEFAULT '.$data[$table][$name]['default'].';';
|
||||
$query .= str_replace('DEFAULT_GENERATED', ' ', $data[$table][$name]['extra']).' '.$null;
|
||||
if ($data[$table][$name]['default']) {
|
||||
$query .= ' DEFAULT '.$data[$table][$name]['default'];
|
||||
}
|
||||
}
|
||||
|
||||
echo '
|
||||
|
@ -204,7 +207,7 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
|
|||
'.$name.'
|
||||
</td>
|
||||
<td>
|
||||
'.$query.'
|
||||
'.$query.';
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue