sql.sql 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ALTER TABLE `tb_phone_message`
  2. ADD COLUMN `total` INT NULL COMMENT '消息总数' ;
  3. ALTER TABLE `tb_email_send`
  4. ADD COLUMN `total` INT NULL COMMENT '消息总数' ;
  5. ALTER TABLE `tb_wxtemplate_message`
  6. ADD COLUMN `total` INT NULL COMMENT '消息总数' ;
  7. ALTER TABLE `tb_phone_message`
  8. CHANGE `total` `total` INT(11) DEFAULT '0' NULL COMMENT '消息总数'
  9. ALTER TABLE `tb_email_send`
  10. CHANGE `total` `total` INT(11) DEFAULT '0' NULL COMMENT '消息总数'
  11. ALTER TABLE `tb_wxtemplate_message`
  12. CHANGE `total` `total` INT(11) DEFAULT '0' NULL COMMENT '消息总数'
  13. ALTER TABLE `tb_phone_message`
  14. CHANGE `total` `total` INT(11) DEFAULT '0' NOT NULL COMMENT '消息总数';
  15. ALTER TABLE `tb_email_send`
  16. CHANGE `total` `total` INT(11) DEFAULT '0' NOT NULL COMMENT '消息总数';
  17. ALTER TABLE `tb_wxtemplate_message`
  18. CHANGE `total` `total` INT(11) DEFAULT '0' NOT NULL COMMENT '消息总数';
  19. DROP TABLE IF EXISTS `tb_wxtemplate_config_para`;
  20. CREATE TABLE `tb_wxtemplate_config_para` (
  21. `id` int(11) NOT NULL AUTO_INCREMENT,
  22. `type_id` int(11) DEFAULT NULL COMMENT '对应type表的id',
  23. `name` varchar(255) DEFAULT NULL COMMENT '参数1',
  24. `param_key` varchar(255) DEFAULT NULL COMMENT '参数2',
  25. `value` text COMMENT '参数3',
  26. `message_id` int(11) DEFAULT NULL COMMENT '对应审核表的id',
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  29. alter table tb_phone_message
  30. add column msgCost int(11) DEFAULT '0' NULL COMMENT '短信消耗数' after `total`
  31. CREATE TABLE `tr_app_user_floor` (
  32. `id` int(11) NOT NULL AUTO_INCREMENT,
  33. `org_id` int(11) DEFAULT NULL COMMENT '楼宇id',
  34. `user_id` int(11) DEFAULT NULL COMMENT '用户id',
  35. `creator` varchar(25) DEFAULT NULL COMMENT '创建人',
  36. `createTime` datetime DEFAULT NULL COMMENT '创建时间',
  37. `floor_id` int(11) DEFAULT NULL COMMENT '楼层id',
  38. PRIMARY KEY (`id`)
  39. ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
  40. ALTER TABLE `tb_app_notice`
  41. ADD COLUMN `content_txt` TEXT NULL COMMENT '内容纯文本' AFTER `content`;
  42. ALTER TABLE `tb_email_send`
  43. ADD COLUMN `content_txt` TEXT NULL COMMENT '内容纯文本' AFTER `email_centent`;