mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix(MySQL): wrong value for fields "on update" in some conditions
This commit is contained in:
@ -440,7 +440,9 @@ export class MySQLClient extends AntaresCore {
|
||||
charset: field.CHARACTER_SET_NAME,
|
||||
collation: field.COLLATION_NAME,
|
||||
autoIncrement: field.EXTRA.includes('auto_increment'),
|
||||
onUpdate: field.EXTRA.toLowerCase().includes('on update') ? field.EXTRA.replace('on update', '') : '',
|
||||
onUpdate: field.EXTRA.toLowerCase().includes('on update')
|
||||
? field.EXTRA.substr(field.EXTRA.indexOf('on update') + 9, field.EXTRA.length)
|
||||
: '',
|
||||
comment: field.COLUMN_COMMENT
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user