Browse Source

添加字段

master
dengyinhuan 2 years ago
parent
commit
f4710a8445
  1. 9
      api/app/lib/models/patrol_record_issue_handle.js
  2. 1
      script/1.0.4/schema/4.updata_patrol_record_issue__handle.sql

9
api/app/lib/models/patrol_record_issue_handle.js

@ -195,6 +195,15 @@ module.exports = dc => {
field: "yujingshijian", field: "yujingshijian",
autoIncrement: false autoIncrement: false
}, },
isgaojing: {
type: DataTypes.BOOLEAN,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "isgaojing",
autoIncrement: false
},
}, { }, {
tableName: "patrol_record_issue_handle", tableName: "patrol_record_issue_handle",
comment: "", comment: "",

1
script/1.0.4/schema/4.updata_patrol_record_issue__handle.sql

@ -1,3 +1,4 @@
ALTER TABLE patrol_record_issue_handle ADD yanshoushijian timestamp(6); ALTER TABLE patrol_record_issue_handle ADD yanshoushijian timestamp(6);
ALTER TABLE patrol_record_issue_handle ADD yanshoucishu integer; ALTER TABLE patrol_record_issue_handle ADD yanshoucishu integer;
ALTER TABLE patrol_record_issue_handle ADD yujingshijian timestamp(6); ALTER TABLE patrol_record_issue_handle ADD yujingshijian timestamp(6);
ALTER TABLE patrol_record_issue_handle ADD isgaojing bool;

Loading…
Cancel
Save