From c8c88e06a71401f11208dd5de758d2469a9bc8f1 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Sat, 5 Aug 2023 00:42:23 +0800 Subject: [PATCH] =?UTF-8?q?report=20=E5=88=A0=E9=99=A4=20handleOpinions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/models/report.js | 9 --------- scripts/1.3.1/schema/4.update_report.sql | 9 +-------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/api/app/lib/models/report.js b/api/app/lib/models/report.js index 0e1293c7..3af84679 100644 --- a/api/app/lib/models/report.js +++ b/api/app/lib/models/report.js @@ -437,15 +437,6 @@ module.exports = dc => { field: "other_description", autoIncrement: false }, - handleOpinions: { - type: DataTypes.STRING, - allowNull: true, - defaultValue: null, - comment: "处理意见", - primaryKey: false, - field: "handle_opinions", - autoIncrement: false - }, handleAdvice: { index: 6, type: DataTypes.STRING, diff --git a/scripts/1.3.1/schema/4.update_report.sql b/scripts/1.3.1/schema/4.update_report.sql index 51ab0ebc..88d63651 100644 --- a/scripts/1.3.1/schema/4.update_report.sql +++ b/scripts/1.3.1/schema/4.update_report.sql @@ -1,13 +1,6 @@ ALTER TABLE "public"."report" - ADD COLUMN "handle_advice" varchar(1024) - add handle_opinions varchar(1024); + ADD COLUMN "handle_advice" varchar(1024); COMMENT ON COLUMN "public"."report"."handle_state" IS '待处理 / 已指派 / 已处理 / 不处理'; COMMENT ON COLUMN "public"."report"."handle_advice" IS '管理员处理意见'; - -comment on column report.handle_opinions is '处理意见'; - - - -