V4.9.sql 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. -- 2020-10-13 用户权限表
  2. ALTER TABLE `friendship`.`user_permissions`
  3. ADD COLUMN `create_image_card` tinyint(2) NULL DEFAULT 0 COMMENT '创建形象卡' AFTER `live_room`,
  4. ADD COLUMN `like_user` tinyint(2) NULL DEFAULT 0 COMMENT '喜欢用户' AFTER `create_image_card`;
  5. -- 2020-10-14
  6. ALTER TABLE `friendship`.`user_permissions`
  7. CHANGE COLUMN `userId` `user_id` bigint(20) NOT NULL COMMENT '用户id' AFTER `id`,
  8. ADD UNIQUE INDEX `user_id_index`(`user_id`) USING BTREE COMMENT '用户id唯一索引';
  9. ALTER TABLE `friendship`.`report_and_appeal`
  10. ADD COLUMN `been_report_user_id` bigint(20) NULL COMMENT '被举报人id' AFTER `report_user_id`;
  11. -- 2020-10-15
  12. ALTER TABLE `friendship`.`report_and_appeal`
  13. DROP COLUMN `appeal_img_urls`,
  14. DROP COLUMN `appeal_des`,
  15. DROP COLUMN `appeal_time`,
  16. DROP COLUMN `appeal_status`,
  17. DROP COLUMN `appeal_count`,
  18. ADD COLUMN `timestamp` bigint(20) NULL COMMENT '时间戳' AFTER `report_status`;
  19. ALTER TABLE `friendship`.`report_and_appeal_history`
  20. CHANGE COLUMN `report_id` `report_or_appeal_id` bigint(20) NULL DEFAULT NULL COMMENT '举报时间戳或申诉id' AFTER `id`;
  21. ALTER TABLE `friendship`.`report_and_appeal`
  22. ADD COLUMN `deanid_des` varchar(255) NULL COMMENT '拒绝理由' AFTER `timestamp`
  23. ADD COLUMN `appeal_status` tinyint(2) NULL COMMENT '是否需要申诉,用于标记申诉完成状态' AFTER `deanid_des`;
  24. ALTER TABLE `friendship`.`appeal`
  25. MODIFY COLUMN `appeal_time` timestamp(0) NULL DEFAULT NULL COMMENT '申诉时间' AFTER `appeal_user_id`,
  26. ADD COLUMN `update_time` timestamp(0) NULL COMMENT '审核时间' AFTER `appeal_count`,
  27. ADD COLUMN `deanid_des` varchar(255) NULL COMMENT '拒绝理由' AFTER `update_time`;
  28. ALTER TABLE `friendship`.`report_and_appeal_history`
  29. ADD COLUMN `history_type` tinyint(2) NULL COMMENT '历史记录类型' AFTER `des`;