20200930.sql 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- 2.4.0版本以前 或 数据库以下字段为bit的 需要运行本文件来矫正数据库
  2. alter table `goods`
  3. change `is_hot` `is_hot` TINYINT(1) not null default 0 comment '是否热销:0-否、1-是',
  4. change `status` `status` TINYINT(1) not null default 1 comment '状态:0-下架、1-上架';
  5. alter table `node_rule`
  6. change `is_black` `is_black` TINYINT(1) not null default 1 comment '是否黑名单模式:0-不是、1-是';
  7. alter table `order`
  8. change `is_expire` `is_expire` TINYINT(1) not null default 0 comment '是否已过期:0-未过期、1-已过期';
  9. alter table `payment_callback`
  10. change `status` `status` TINYINT(1) not null comment '交易状态:0-失败、1-成功';
  11. alter table `products_pool`
  12. change `status` `status` TINYINT(1) not null default 1 comment '状态:0-未启用、1-已启用';
  13. alter table `rule_group`
  14. change `type` `type` TINYINT(1) not null default 1 comment '模式:1-阻断、0-放行';
  15. alter table `ss_config`
  16. change `is_default` `is_default` TINYINT(1) not null default 0 comment '是否默认:0-不是、1-是';
  17. alter table `ss_node`
  18. change `is_subscribe` `is_subscribe` TINYINT(1) not null default 1 comment '是否允许用户订阅该节点:0-否、1-是',
  19. change `is_ddns` `is_ddns` TINYINT(1) not null default 0 comment '是否使用DDNS:0-否、1-是',
  20. change `is_relay` `is_relay` TINYINT(1) not null default 0 comment '是否中转节点:0-否、1-是',
  21. change `is_udp` `is_udp` TINYINT(1) not null default 1 comment '是否启用UDP:0-不启用、1-启用',
  22. change `compatible` `compatible` TINYINT(1) not null default 0 comment '兼容SS',
  23. change `single` `single` TINYINT(1) not null default 0 comment '启用单端口功能:0-否、1-是',
  24. change `status` `status` TINYINT(1) not null default 1 comment '状态:0-维护、1-正常',
  25. change `v2_tls` `v2_tls` TINYINT(1) not null default 0 comment 'V2Ray连接TLS:0-未开启、1-开启';
  26. alter table `user`
  27. change `is_admin` `is_admin` TINYINT(1) not null default 0 comment '是否管理员:0-否、1-是';
  28. alter table `user_baned_log`
  29. change `status` `status` TINYINT(1) not null default 0 comment '状态:0-未处理、1-已处理';
  30. alter table `user_subscribe`
  31. change `status` `status` TINYINT(1) not null default 1 comment '状态:0-禁用、1-启用';