源战役
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

32 строки
1.5 KiB

1 месяц назад
  1. -- liushl
  2. -- 删除福利大厅旧数据
  3. drop table if exists daily_checkin;
  4. drop table if exists mon_checkin;
  5. drop table if exists daily_online_time;
  6. drop table if exists rush_giftbag;
  7. drop table if exists share_gift;
  8. drop table if exists log_daily_checkin;
  9. drop table if exists log_month_check_in;
  10. drop table if exists log_total_checkin;
  11. drop table if exists log_welfare_giftbag;
  12. drop table if exists log_rush_giftbag;
  13. drop table if exists log_online_gift;
  14. drop table if exists log_share_times;
  15. -- 福利大厅
  16. CREATE TABLE `player_welfare` (
  17. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  18. `round` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '签到周期',
  19. `days` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '签到天数',
  20. `online_type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '在线奖励类型',
  21. `level_award_state` int(11) NOT NULL DEFAULT '0' COMMENT '等级礼包状态',
  22. `download_award_state` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '资源下载奖励状态',
  23. PRIMARY KEY (`role_id`)
  24. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='福利大厅(合服保留)';
  25. -- tyl
  26. -- 添加孩子跟随
  27. alter table role_child
  28. add column `is_follow` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '孩子跟随状态 0-不跟随 1-跟随' AFTER `last_show_off_time`,
  29. add column `show_vehicle` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '跟随载具 0-不跟随 其他-具体载具Id' AFTER `is_follow`;