Skip to content

Commit

Permalink
add commas between enum values
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Aaqil <[email protected]>
  • Loading branch information
aaqilniz committed Aug 20, 2024
1 parent 3d0dd5f commit 7ec1284
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,10 @@ function mixinMigration(MySQL, mysql) {
if (colType && colType === 'ENUM') {
if (prop.jsonSchema && prop.jsonSchema.enum) {
prop.jsonSchema.enum.forEach(item => {
enumList += `'${item}'`;
enumList += `'${item}',`;
});
// remove trailing comma
enumList = enumList.substring(0, enumList.length - 1);
}
}
// info on setting column specific properties
Expand Down

0 comments on commit 7ec1284

Please sign in to comment.