Fix import from central column list not setting the default value
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
d67cb109b4
commit
913a2e7ff3
@ -2971,11 +2971,11 @@ Functions.autoPopulate = function (inputId, offset) {
|
||||
var $input4 = $('#' + newInputId + '4');
|
||||
if (colDefault !== '' && colDefault !== 'NULL' && colDefault !== 'CURRENT_TIMESTAMP' && colDefault !== 'CURRENT_TIMESTAMP()') {
|
||||
$input4.val('USER_DEFINED');
|
||||
$input4.next().next().show();
|
||||
$input4.next().next().val(centralColumnList[db + '_' + table][offset].col_default);
|
||||
$input4.siblings('.default_value').show();
|
||||
$input4.siblings('.default_value').val(centralColumnList[db + '_' + table][offset].col_default);
|
||||
} else {
|
||||
$input4.val(centralColumnList[db + '_' + table][offset].col_default);
|
||||
$input4.next().next().hide();
|
||||
$input4.siblings('.default_value').hide();
|
||||
}
|
||||
$('#' + newInputId + '5').val(centralColumnList[db + '_' + table][offset].col_collation);
|
||||
var $input6 = $('#' + newInputId + '6');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user