0.8.6.sql 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ALTER TABLE `salary_jobs` ADD INDEX(`taskid`);
  2. ALTER TABLE `wh_out` ADD INDEX(`desttype`);
  3. ALTER TABLE `wh_out` ADD INDEX(`destparam`);
  4. CREATE TABLE IF NOT EXISTS `polls` (
  5. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  6. `title` varchar(255) NOT NULL DEFAULT '',
  7. `enabled` tinyint(1) NOT NULL DEFAULT '0',
  8. `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  9. `end_date` datetime DEFAULT '0000-00-00 00:00:00',
  10. `params` text NOT NULL,
  11. `admin` varchar(255) NOT NULL DEFAULT '',
  12. `voting` VARCHAR(255) NOT NULL DEFAULT 'Users',
  13. PRIMARY KEY (`id`)
  14. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  15. CREATE TABLE IF NOT EXISTS `polls_options` (
  16. `id` int(11) NOT NULL AUTO_INCREMENT,
  17. `poll_id` int(11) NOT NULL DEFAULT '0',
  18. `text` text NOT NULL,
  19. PRIMARY KEY (`id`),
  20. UNIQUE KEY `poll_id` (`id`,`poll_id`) USING BTREE
  21. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  22. CREATE TABLE IF NOT EXISTS `polls_votes` (
  23. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  24. `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  25. `option_id` int(11) NOT NULL DEFAULT '0',
  26. `poll_id` int(11) NOT NULL DEFAULT '0',
  27. `login` varchar(255) NOT NULL,
  28. PRIMARY KEY (`id`),
  29. UNIQUE KEY `login_poll` (`poll_id`,`login`) USING BTREE,
  30. UNIQUE KEY `login_poll_option` (`option_id`,`poll_id`,`login`) USING BTREE
  31. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  32. CREATE TABLE IF NOT EXISTS `zbsannhist` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `date` datetime NOT NULL,
  35. `annid` int(11) NOT NULL,
  36. `login` varchar(255) NOT NULL,
  37. PRIMARY KEY (`id`),
  38. KEY `annid` (`annid`)
  39. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  40. ALTER TABLE `vservices` ADD `fee_charge_always` TINYINT(1) NOT NULL DEFAULT 1;
  41. CREATE TABLE IF NOT EXISTS `zte_cards` (
  42. `id` INT NOT NULL AUTO_INCREMENT,
  43. `swid` INT NOT NULL,
  44. `slot_number` INT NOT NULL,
  45. `card_name` VARCHAR(5) NOT NULL,
  46. PRIMARY KEY (`id`),
  47. KEY (`swid`) )
  48. ENGINE = MyISAM DEFAULT CHARSET=UTF8;
  49. CREATE TABLE IF NOT EXISTS `zte_vlan_bind` (
  50. `id` INT NOT NULL AUTO_INCREMENT,
  51. `swid` INT NOT NULL,
  52. `slot_number` INT NOT NULL,
  53. `port_number` INT(2) NOT NULL,
  54. `vlan` INT(4) NOT NULL,
  55. PRIMARY KEY (`id`),
  56. KEY (`swid`) )
  57. ENGINE = MyISAM DEFAULT CHARSET=UTF8;
  58. ALTER TABLE `zte_cards` ADD COLUMN `chasis_number` INT (1) NOT NULL;