diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index b23c09c88..759a54ce7 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -565,6 +565,10 @@ sub get_datatype_string_db2 { } } } + } else { # type not specifically define + if (isAKey(\@{$descr->{keys}}, $col)) { + $ret = "VARCHAR(128) NOT NULL "; + } } if ($col eq "disable") {