Skip to content

Commit 8eeb063

Browse files
fix: set empty string when column description removed (#123)
* fix: set empty string when column description removed * fix
1 parent 9ce8fb0 commit 8eeb063

File tree

1 file changed

+2
-2
lines changed
  • forward_engineering/alterScript/alterScriptHelpers/columnHelpers

1 file changed

+2
-2
lines changed

forward_engineering/alterScript/alterScriptHelpers/columnHelpers/optionsHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const getModifiedColumnOptionScripts = ({ collection, app, tableData }) => {
2020
const oldOptionValue = collection.role.properties[oldName]?.[customOptionName];
2121

2222
if (newOptionValue !== oldOptionValue) {
23-
const value = newOptionValue ? escapeQuotes(newOptionValue) : newOptionValue;
24-
optionsToUpdate.push(`${columnOptionName}="${value}"`);
23+
const value = newOptionValue ? `"${escapeQuotes(newOptionValue)}"` : 'NULL';
24+
optionsToUpdate.push(`${columnOptionName}=${value}`);
2525
}
2626
});
2727

0 commit comments

Comments
 (0)