Skip to content

Commit

Permalink
fix(MySQL): missing exported values for DEFAULT_GENERATED table fields,
Browse files Browse the repository at this point in the history
fixes #854
  • Loading branch information
Fabio286 committed Oct 1, 2024
1 parent 76c8cd1 commit 2cda4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/libs/clients/MySQLClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ export class MySQLClient extends BaseClient {
charset: field.CHARACTER_SET_NAME,
collation: field.COLLATION_NAME,
autoIncrement: field.EXTRA.includes('auto_increment'),
generated: field.EXTRA.toLowerCase().includes('generated'),
generated: ['VIRTUAL GENERATED', 'VIRTUAL STORED'].includes(field.EXTRA),
onUpdate: field.EXTRA.toLowerCase().includes('on update')
? field.EXTRA.substr(field.EXTRA.indexOf('on update') + 9, field.EXTRA.length).trim()
: '',
Expand Down

0 comments on commit 2cda4a1

Please sign in to comment.