central_update_20241012.sql 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. alter table pay_renew
  2. add current_out_trade_no varchar(64) null comment '当前支付订单号';
  3. alter table pay_renew
  4. add order_type int(2) null comment '订单类型 0原始订单 1续费订单';
  5. alter table pay_renew
  6. add pay_method int(2) null comment '支付方式 1支付宝 2微信 3苹果';
  7. alter table pay_renew
  8. add package_name varchar(255) null comment '包名';
  9. create index idx_current_out_trade_no
  10. on pay_renew (current_out_trade_no);
  11. create index idx_query
  12. on pay_renew (package_name, create_time, order_type, pay_method);
  13. alter table promotion_grant_source
  14. add scope varchar(255) null after account_id;
  15. ALTER TABLE `conf_condition`
  16. ADD COLUMN `yml_content` LONGTEXT DEFAULT NULL,
  17. ADD COLUMN `content_type` INT(11) DEFAULT NULL COMMENT '0:json 1:yaml',
  18. ADD COLUMN `md5` VARCHAR(32) DEFAULT NULL COMMENT 'md5';
  19. alter table conf_condition
  20. modify content json null;
  21. create table central.his_conf_condition
  22. (
  23. id int auto_increment
  24. primary key,
  25. project_code varchar(255) not null,
  26. conf_code varchar(255) not null,
  27. content json not null,
  28. create_time datetime not null,
  29. update_time datetime not null,
  30. yml_content longtext null,
  31. content_type int null comment '0:json 1:yaml',
  32. source_id int null comment 'conf_condition的id',
  33. md5 varchar(32) null comment 'md5'
  34. );
  35. alter table his_conf_condition
  36. modify content json null;