0.9.0.sql 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. CREATE TABLE IF NOT EXISTS `frozen_charge_days` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `login` varchar(255) NOT NULL,
  4. `freeze_days_amount` smallint(3) NOT NULL DEFAULT 0,
  5. `freeze_days_used` smallint(3) NOT NULL DEFAULT 0,
  6. `work_days_restore` smallint(3) NOT NULL DEFAULT 0,
  7. `days_worked` smallint(3) NOT NULL DEFAULT 0,
  8. PRIMARY KEY (`id`),
  9. UNIQUE KEY (`login`)
  10. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  11. ALTER TABLE `wdycinfo` ADD `totaltrytime` INT NULL DEFAULT NULL;
  12. ALTER TABLE `exhorse` ADD `a_recallunsuccess` DOUBLE NULL DEFAULT NULL ,
  13. ADD `a_recalltrytime` INT NULL DEFAULT NULL ,
  14. ADD `e_deadswintervals` INT NULL DEFAULT NULL ,
  15. ADD `t_sigreq` INT NULL DEFAULT NULL ,
  16. ADD `t_tickets` INT NULL DEFAULT NULL ,
  17. ADD `t_tasks` INT NULL DEFAULT NULL ,
  18. ADD `t_capabtotal` INT NULL DEFAULT NULL ,
  19. ADD `t_capabundone` INT NULL DEFAULT NULL ;
  20. ALTER TABLE `nethosts` ADD UNIQUE `net-ip` (`netid`, `ip`);
  21. CREATE TABLE IF NOT EXISTS `districtnames` (
  22. `id` int(11) NOT NULL AUTO_INCREMENT,
  23. `name` varchar(255) NOT NULL,
  24. PRIMARY KEY (`id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  26. CREATE TABLE IF NOT EXISTS `districtdata` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT,
  28. `districtid` int(11) NOT NULL,
  29. `cityid` int(11) DEFAULT NULL,
  30. `streetid` int(11) DEFAULT NULL,
  31. `buildid` int(11) DEFAULT NULL,
  32. PRIMARY KEY (`id`)
  33. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  34. ALTER TABLE `userreg` ADD INDEX `login` (`login`);