fix: compatible jsonb for MySQL
This commit is contained in:
parent
e8113f3809
commit
5847c9eeab
@ -350,6 +350,12 @@ export class JSON extends Column {
|
||||
}
|
||||
|
||||
export class JSONB extends Column {
|
||||
public getDataType() {
|
||||
if (this.context.database.sequelize.getDialect() === 'postgres') {
|
||||
return DataTypes.JSONB;
|
||||
}
|
||||
return DataTypes.JSON;
|
||||
}
|
||||
}
|
||||
|
||||
export class UUID extends Column {
|
||||
|
Loading…
Reference in New Issue
Block a user