1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix(MySQL): wrong datetime fields default in table filler in some cases

This commit is contained in:
2021-12-09 18:26:59 +01:00
parent 359e14a9eb
commit 8da0224876
2 changed files with 4 additions and 4 deletions

View File

@ -441,7 +441,7 @@ export class MySQLClient extends AntaresCore {
collation: field.COLLATION_NAME,
autoIncrement: field.EXTRA.includes('auto_increment'),
onUpdate: field.EXTRA.toLowerCase().includes('on update')
? field.EXTRA.substr(field.EXTRA.indexOf('on update') + 9, field.EXTRA.length)
? field.EXTRA.substr(field.EXTRA.indexOf('on update') + 9, field.EXTRA.length).trim()
: '',
comment: field.COLUMN_COMMENT
};