V4.8.sql 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. -- user_auth_hold_pic
  2. ALTER TABLE `friendship`.`user_auth_hold_pic`
  3. ADD COLUMN `remark` varchar(140) NULL COMMENT '拒绝理由' AFTER `status`;
  4. ALTER TABLE `friendship`.`user_auth_hold_pic`
  5. MODIFY COLUMN `user_hold_pic` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户手持身份证照片地址' AFTER `real_name`;
  6. ALTER TABLE `friendship`.`user_auth_hold_pic`
  7. ADD COLUMN `create_time` timestamp(0) NULL COMMENT '创建时间' AFTER `remark`;
  8. ALTER TABLE `friendship`.`user_auth_hold_pic`
  9. MODIFY COLUMN `verify_time` timestamp(0) NULL DEFAULT NULL COMMENT '审核时间' AFTER `verify_user_id`;
  10. ALTER TABLE `friendship`.`user_auth_hold_pic`
  11. ADD COLUMN `verify_user_id` int(10) NULL COMMENT '审核的管理员id' AFTER `create_time`,
  12. ADD COLUMN `verify_time` int(10) NULL COMMENT '审核时间' AFTER `verify_user_id`;
  13. -- auth
  14. ALTER TABLE `friendship`.`authenticate`
  15. MODIFY COLUMN `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键' FIRST;
  16. -- 陪玩订单
  17. ALTER TABLE `friendship`.`play_orders`
  18. ADD COLUMN `comment_status` tinyint(2) NULL DEFAULT 0 COMMENT '评论状态,0:评论状态' AFTER `money`;
  19. -- 陪玩订单评论表
  20. ALTER TABLE `friendship`.`play_order_comment`
  21. CHANGE COLUMN `skill_id` `game_id` bigint(20) NULL DEFAULT NULL COMMENT '陪玩师注册的技能id' AFTER `id`,
  22. ADD COLUMN `player_user_id` bigint(20) NULL COMMENT '陪玩师用户id' AFTER `game_id`;
  23. ALTER TABLE `friendship`.`play_order_comment`
  24. ADD COLUMN `order_id` bigint(20) NULL COMMENT '订单id' AFTER `start`;
  25. -- 字典
  26. ALTER TABLE `friendship`.`dictionary`
  27. MODIFY COLUMN `sn` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典编码' AFTER `name`;
  28. MODIFY COLUMN `sn` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典编码' AFTER `name`;
  29. -- 2020/09/11 17:32 陪玩师注册表语音介绍
  30. ALTER TABLE `friendship`.`play_user_registered`
  31. ADD COLUMN `voice_introduce` varchar(255) NULL DEFAULT NULL COMMENT '语音介绍' AFTER `price`;
  32. -- 2020/09/12 11:15 系统技能游戏配置表增加 游戏区服 擅长位置
  33. ALTER TABLE `friendship`.`play_game_config`
  34. ADD COLUMN `game_zone` varchar(144) NULL DEFAULT NULL COMMENT '游戏区服' AFTER `game_name`,
  35. ADD COLUMN `good_at_location` varchar(144) NULL DEFAULT NULL COMMENT '擅长位置' AFTER `game_zone`;
  36. -- 2020/09/14 10:10 陪玩师注册表增加 游戏区服index,擅长位置index,个性标签id
  37. ALTER TABLE `friendship`.`play_user_registered`
  38. ADD COLUMN `game_zone` varchar(64) NULL DEFAULT NULL COMMENT '游戏区服' AFTER `voice_introduce`,
  39. ADD COLUMN `good_at_location` varchar(64) NULL DEFAULT NULL COMMENT '擅长位置' AFTER `game_zone`,
  40. ADD COLUMN `character_tag_id` bigint(20) NULL DEFAULT NULL COMMENT '个性标签id' AFTER `good_at_location`,
  41. ADD COLUMN `game_level_status` tinyint(2) NULL DEFAULT NULL COMMENT '段位审核状态' AFTER `user_game_level`,
  42. ADD COLUMN `new_screen_shot` varchar(255) NULL DEFAULT NULL COMMENT '新段位截图' AFTER `game_level_status`,
  43. ADD COLUMN `new_game_level` varchar(255) NULL DEFAULT NULL COMMENT '新游戏段位' AFTER `new_screen_shot`;
  44. -- 2020/09/15 10:39
  45. ALTER TABLE `friendship`.`play_user_registered`
  46. ADD COLUMN `summary_of_skill` varchar(144) NULL DEFAULT NULL COMMENT '技能简介' AFTER `voice_introduce`;
  47. -- 2020/09/16 10:39
  48. ALTER TABLE `friendship`.`ios_menu`
  49. ADD COLUMN `find_cover_picture` varchar(128) NULL COMMENT '发现封面图片' AFTER `type`;
  50. ADD COLUMN `find_cover_picture` varchar(128) NULL COMMENT '发现封面图片' AFTER `type`;
  51. -- 2020/09/15 15:52
  52. ALTER TABLE `friendship`.`play_user_registered`
  53. ADD COLUMN `voice_duration` int(4) NULL DEFAULT NULL COMMENT '语音时长' AFTER `voice_introduce`;
  54. ADD COLUMN `voice_duration` int(4) NULL DEFAULT NULL COMMENT '语音时长' AFTER `voice_introduce`;
  55. ADD COLUMN `find_cover_picture` varchar(128) NULL COMMENT '发现封面图片' AFTER `type`;
  56. --2020/09/17 14:39 play_user_image_card_last_review
  57. ALTER TABLE `friendship`.`play_user_image_card_last_review`
  58. ADD COLUMN `create_time` timestamp(0) NULL COMMENT '创建时间' AFTER `last_verify_imagecard_pic`;
  59. --2020/09/18 14:39 game_skill_recommend
  60. ALTER TABLE `friendship`.`game_skill_recommend`
  61. ADD COLUMN `voice_introduce` varchar(200) NULL COMMENT '语音介绍' AFTER `billing_way`;
  62. -- 2020/09/17 10:45
  63. ALTER TABLE `friendship`.`play_user_registered`
  64. DROP COLUMN `character_tag_id`;
  65. -- 2020/09/18
  66. ALTER TABLE `friendship`.`play_game_config`
  67. ADD COLUMN `voice_introduce_temp` varchar(144) NULL DEFAULT NULL COMMENT '语音介绍示例' AFTER `good_at_location`;
  68. ADD COLUMN `voice_introduce_temp` varchar(144) NULL DEFAULT NULL COMMENT '语音介绍示例' AFTER `good_at_location`;
  69. ALTER TABLE `friendship`.`play_user_image_card_last_review`
  70. CHANGE COLUMN `userId` `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id' AFTER `id`;
  71. ALTER TABLE `friendship`.`game_skill_recommend`
  72. ADD COLUMN `status` tinyint(2) NULL DEFAULT 0 COMMENT '逻辑删除状态' AFTER `voice_introduce`;
  73. ALTER TABLE `friendship`.`play_image_card_recommend_index_flag`
  74. ADD COLUMN `status` tinyint(2) NULL DEFAULT 0 COMMENT '逻辑删除状态' AFTER `update_time`;
  75. ALTER TABLE `friendship`.`play_image_card_recommend_index_flag`
  76. DROP COLUMN `recommend_status`;
  77. ALTER TABLE `friendship`.`game_skill_recommend`
  78. ADD COLUMN `voice_duration` int(10) NULL DEFAULT 0 COMMENT '语音时长' AFTER `status`;
  79. ALTER TABLE `friendship`.`play_order_comment`
  80. CHANGE COLUMN `start` `star` int(1) NULL DEFAULT NULL COMMENT '评分' AFTER `user_id`;
  81. ALTER TABLE `friendship`.`advert_promote_user_device`
  82. MODIFY COLUMN `c_id` varchar(32) NULL DEFAULT NULL COMMENT '创意id' AFTER `d_id`;
  83. ALTER TABLE `friendship`.`user_device`
  84. MODIFY COLUMN `ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0.0.0.0' COMMENT '用户IP' AFTER `androidid`;
  85. -- 2020-09-23 陪玩师注册表
  86. ALTER TABLE `friendship`.`play_game_config`
  87. ADD COLUMN `sort_score` int(4) NULL DEFAULT 0 COMMENT '排序权重' AFTER `billing_way`,
  88. ADD COLUMN `is_edit_rank` tinyint(2) NULL DEFAULT 1 COMMENT '段位是否可编辑0:不可编辑,1:可编辑' AFTER `sort_score`;
  89. -- 2020-09-4 陪玩形象卡推荐
  90. ALTER TABLE `friendship`.`play_image_card_recommend`
  91. ADD COLUMN `score` double(14, 0) NULL COMMENT '排名(分值越大越靠前)' AFTER `user_gender`;
  92. --2020-09-25 发现菜单
  93. ALTER TABLE `friendship`.`ios_menu`
  94. ADD COLUMN `sort_score` int(4) NULL DEFAULT 0 COMMENT '排序权重' AFTER `type`;
  95. -- 2020-09-26 用户信息
  96. ALTER TABLE `friendship`.`user_info`
  97. ADD COLUMN `auth_time` int(2) NULL DEFAULT 0 COMMENT '实名认证次数' AFTER `tags`;
  98. -- 客户端信息
  99. ALTER TABLE `friendship`.`user_device`
  100. ADD COLUMN `system_version` varchar(24) NULL COMMENT '科幻端系统版本' AFTER `retention`;
  101. -- 2020-09-27
  102. ALTER TABLE `friendship`.`play_game_config`
  103. ADD COLUMN `min_ios_version` varchar(16) NULL COMMENT 'ios最低支持版本' AFTER `is_edit_rank`,
  104. ADD COLUMN `min_android_version` varchar(16) NULL COMMENT '安卓最低支持版本' AFTER `min_ios_version`;