alter processor - works add column tests

This commit is contained in:
Jan Prochazka
2021-07-01 09:12:15 +02:00
parent 4a3ef70979
commit 3791fd568c
4 changed files with 14 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ function getColumnInfo({
fullDataType = `${dataType}(${numericPrecision},${numericScale})`;
return {
notNull: !isNullable || isNullable == 'NO' || isNullable == 'no',
autoIncrement: extra && extra.toLowerCase().includes('auto_increment'),
autoIncrement: !!(extra && extra.toLowerCase().includes('auto_increment')),
columnName,
dataType: fullDataType,
defaultValue,