0.8.3.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. CREATE TABLE IF NOT EXISTS `wdycinfo` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `date` date NOT NULL,
  4. `missedcount` int(11) DEFAULT NULL,
  5. `recallscount` int(11) DEFAULT NULL,
  6. `unsucccount` int(11) DEFAULT NULL,
  7. `missednumbers` text,
  8. PRIMARY KEY (`id`)
  9. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  10. ALTER TABLE `taskman` ADD `change_admin` VARCHAR(255) NULL DEFAULT NULL;
  11. CREATE TABLE IF NOT EXISTS `wh_reshist` (
  12. `id` int(11) NOT NULL AUTO_INCREMENT,
  13. `date` datetime NOT NULL,
  14. `type` varchar(40) NOT NULL,
  15. `storageid` int(11) DEFAULT NULL,
  16. `itemtypeid` int(11) DEFAULT NULL,
  17. `count` double DEFAULT NULL,
  18. `employeeid` int(11) DEFAULT NULL,
  19. `admin` varchar(100) NOT NULL,
  20. PRIMARY KEY (`id`),
  21. KEY `date` (`date`,`storageid`,`itemtypeid`)
  22. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  23. ALTER TABLE `wh_in` ADD `admin` VARCHAR(100) NULL DEFAULT NULL AFTER `notes`;
  24. ALTER TABLE `wh_out` ADD `admin` VARCHAR(100) NULL DEFAULT NULL AFTER `notes`;
  25. ALTER TABLE `employee` ADD `tagid` INT(11) NULL DEFAULT NULL;
  26. CREATE TABLE IF NOT EXISTS `admannouncements` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT,
  28. `title` varchar(255) DEFAULT NULL,
  29. `text` text NOT NULL,
  30. PRIMARY KEY (`id`)
  31. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  32. CREATE TABLE IF NOT EXISTS `admacquainted` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `date` datetime NOT NULL,
  35. `admin` varchar(40) NOT NULL,
  36. `annid` int(11) DEFAULT NULL,
  37. PRIMARY KEY (`id`),
  38. KEY `date` (`date`,`admin`)
  39. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;