From e36466442331b1e4729adbf4e808293523bd1ea8 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 22 Sep 2022 16:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=91=8A=E8=AD=A6=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/models/app_alarm.js | 2 +- script/0.0.4/schema/1.alert_table.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);