fix: correctly show default value for firebird

This commit is contained in:
Pavel
2025-05-22 16:48:11 +02:00
parent d4931890ae
commit 8ea7d3d5e8
3 changed files with 10 additions and 2 deletions

View File

@@ -75,8 +75,15 @@ function getTriggerTiming(triggerType) {
return eventMap[triggerType]?.triggerTiming || null;
}
function getFormattedDefaultValue(defaultValue) {
if (defaultValue === null) return null;
return defaultValue.replace(/^default\s*/i, '');
}
module.exports = {
getDataTypeString,
getTriggerEventType,
getTriggerTiming,
getFormattedDefaultValue,
};