mysql column comments #218 #81

This commit is contained in:
Jan Prochazka
2022-02-10 12:46:00 +01:00
parent c3c63da752
commit 691bb0af4f
8 changed files with 37 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ function getColumnInfo({
numericPrecision,
numericScale,
defaultValue,
columnComment,
}) {
let fullDataType = dataType;
if (charMaxLength && isTypeString(dataType)) fullDataType = `${dataType}(${charMaxLength})`;
@@ -23,6 +24,7 @@ function getColumnInfo({
notNull: !isNullable || isNullable == 'NO' || isNullable == 'no',
autoIncrement: !!(extra && extra.toLowerCase().includes('auto_increment')),
columnName,
columnComment,
dataType: fullDataType,
defaultValue,
};