V4.2.sql 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --- 2020-06-01
  2. ALTER TABLE `friendship`.`user_not_interested_info`
  3. ADD COLUMN `create_time` timestamp(0) NULL COMMENT '创建时间' AFTER `type`;
  4. ALTER TABLE `friendship`.`topic`
  5. add column `topic_group_manager` bigint(20) NULL COMMENT '话题群主' AFTER `title`;
  6. --- 20200602
  7. ALTER TABLE `friendship`.`user_black`
  8. ADD UNIQUE INDEX `idx_userId_targetUserId`(`user_id`, `target_user_id`) USING BTREE COMMENT '用户id和targetid创建唯一索引';
  9. --- 20200603
  10. ALTER TABLE `friendship`.`fatelink_history`
  11. ADD COLUMN `type` tinyint(1) NULL COMMENT '类型,语音畅聊/文字连连看' AFTER `chat_room_id`;
  12. -- 20200609
  13. ALTER TABLE `friendship`.`user_video`
  14. ADD COLUMN `is_fill` tinyint(1) NULL COMMENT '是否撑满屏幕' AFTER `video_url`;
  15. -- 20200611
  16. ALTER TABLE `friendship`.`topic`
  17. ADD COLUMN `new_title` varchar(120) NULL COMMENT '新标题' AFTER `status`,
  18. ADD COLUMN `new_cover_img` varchar(255) NULL COMMENT '新背景' AFTER `new_title`,
  19. ADD COLUMN `create_time` timestamp(0) NULL COMMENT '创建时间' AFTER `release_time`,
  20. ADD column `verify_user_id` bigint(20) NULL COMMENT '审核人id' AFTER `create_time`,
  21. ADD COLUMN `verify_date` timestamp(0) NULL COMMENT '审核时间' AFTER `verify_user_id`;
  22. -- 20200612
  23. ALTER TABLE `friendship`.`topic`
  24. ADD COLUMN `announcement_title` varchar(120) NULL COMMENT '公告标题' AFTER `title`,
  25. ADD COLUMN `announcement_content` varchar(240) NULL COMMENT '公告内容' AFTER `announcement_title`;
  26. -- 20200615
  27. INSERT INTO `friendship`.`system_config`(`name`,`value`,`des`,`create_time`,`sn`) values ('创建话题需要的u豆',50,'4.2.0版本第一次创建话题免费',now(),'CJHTXYDUD');
  28. ALTER TABLE `friendship`.`topic`
  29. ADD COLUMN `user_account_detail_id` bigint(20) NULL COMMENT '消费u豆订单Id' AFTER `create_time`,
  30. ADD COLUMN `before_edit_status` tinyint(3) NULL COMMENT '编辑话题之前的状态' AFTER `status`;
  31. -- 20200617
  32. ALTER TABLE `friendship`.`group`
  33. DROP INDEX `topicId`,
  34. ADD UNIQUE INDEX `topicId`(`group_topic_id`) USING BTREE;
  35. -- 20200622
  36. ALTER TABLE `friendship`.`user_account`
  37. MODIFY COLUMN `sugar` double(20, 2) NULL DEFAULT 0.0000 COMMENT 'q糖果' AFTER `user_id`,
  38. MODIFY COLUMN `recharged` tinyint(1) NULL DEFAULT 0 COMMENT '是否充值过;0:未充值,1:充值过' AFTER `beans`,
  39. MODIFY COLUMN `withdrawal_amount` decimal(10, 2) NULL DEFAULT 0.0000 COMMENT '提现总额' AFTER `recharged`;
  40. ALTER TABLE `friendship`.`user_account_detail`
  41. MODIFY COLUMN `before_sugar` double(20, 2) NULL DEFAULT 0.0000 COMMENT '交易前q糖' AFTER `after_beans`,
  42. MODIFY COLUMN `trade_sugar` double(10, 2) NULL DEFAULT 0.0000 COMMENT '交易q糖' AFTER `before_sugar`,
  43. MODIFY COLUMN `after_sugar` double(20, 2) NULL DEFAULT 0.0000 COMMENT '交易后的q糖' AFTER `trade_sugar`;
  44. ALTER TABLE `friendship`.`vistor_info`
  45. ADD UNIQUE INDEX `idx_userId_targetId`(`user_id`, `vistor_user_id`) USING BTREE COMMENT '用户id和被访问人的id生成唯一索引';
  46. ALTER TABLE `friendship`.`user_account_with_draw_detail`
  47. MODIFY COLUMN `remark` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注信息' AFTER `verify_date`;