diff --git a/api/app/lib/models/app_alarm.js b/api/app/lib/models/app_alarm.js index a6caed4..c0a6412 100644 --- a/api/app/lib/models/app_alarm.js +++ b/api/app/lib/models/app_alarm.js @@ -128,7 +128,7 @@ module.exports = dc => { autoIncrement: false }, type: { - type: DataTypes.INTEGER, + type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, diff --git a/script/0.0.4/schema/1.alert_table.sql b/script/0.0.4/schema/1.alert_table.sql index ef66da0..24b49aa 100644 --- a/script/0.0.4/schema/1.alert_table.sql +++ b/script/0.0.4/schema/1.alert_table.sql @@ -1,2 +1,2 @@ alter table app_alarm - add type int; \ No newline at end of file + add type varchar(64);