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

fix: issue with ENUM and SET length when creating a new field

This commit is contained in:
2021-05-13 15:45:54 +02:00
parent c7663be338
commit 7a62131cc7
2 changed files with 4 additions and 2 deletions

View File

@@ -329,7 +329,7 @@ export class MySQLClient extends AntaresCore {
unsigned: field.COLUMN_TYPE.includes('unsigned'),
zerofill: field.COLUMN_TYPE.includes('zerofill'),
order: field.ORDINAL_POSITION,
default: field.COLUMN_DEFAULT,
default: field.COLUMN_DEFAULT, // TODO: get from show create table
charset: field.CHARACTER_SET_NAME,
collation: field.COLLATION_NAME,
autoIncrement: field.EXTRA.includes('auto_increment'),