mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 11:26:00 +00:00
fix: correctly show default value for firebird
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user