ALTER TABLE "mailbox"."police_user" ADD COLUMN "data_dept_id" int; COMMENT ON COLUMN "mailbox"."police_user"."data_dept_id" IS '数据部门ID'; update police_user set data_dept_id = dept_ids where data_dept_id is null; ALTER TABLE "mailbox"."notice" ADD COLUMN "dept_id" int4; COMMENT ON COLUMN "mailbox"."notice"."dept_id" IS '部门ID'; ALTER TABLE "mailbox"."notice" ADD COLUMN "work_id" int8;