1.1.6.sql 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. CREATE TABLE IF NOT EXISTS `ptv_subscribers` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `date` datetime NOT NULL,
  4. `active` tinyint(1) DEFAULT NULL,
  5. `subscriberid` int(11) NOT NULL,
  6. `login` varchar(64) NOT NULL,
  7. `maintariff` int(11) DEFAULT NULL,
  8. `addtariffs` varchar(255) DEFAULT NULL,
  9. PRIMARY KEY (`id`)
  10. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  11. CREATE TABLE IF NOT EXISTS `ptv_tariffs` (
  12. `id` INT(11) NOT NULL AUTO_INCREMENT,
  13. `serviceid` INT(11) NOT NULL,
  14. `main` tinyint(1) NOT NULL,
  15. `name` VARCHAR(64) NOT NULL,
  16. `chans` VARCHAR(42) DEFAULT NULL,
  17. `fee` DOUBLE NOT NULL,
  18. PRIMARY KEY (`id`)
  19. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  20. CREATE TABLE IF NOT EXISTS `ponboxes_splitters` (
  21. `id` int(11) NOT NULL AUTO_INCREMENT,
  22. `boxid` int(11) NOT NULL,
  23. `splitter` varchar(200) DEFAULT NULL,
  24. PRIMARY KEY (`id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  26. ALTER TABLE `ponboxes` MODIFY `name` varchar(200) NULL DEFAULT NULL;
  27. ALTER TABLE `ponboxes` ADD `exten_info` varchar(250) NULL DEFAULT NULL AFTER `name`;
  28. ALTER TABLE sms_history ADD INDEX (srvmsgself_id) USING BTREE;
  29. ALTER TABLE sms_history ADD INDEX (srvmsgself_id) USING BTREE;
  30. ALTER TABLE sms_history ADD INDEX (date_statuschk) USING BTREE;