1.4.9.sql 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ALTER TABLE `wh_out` ADD `netw` tinyint(4) NULL DEFAULT 0 AFTER `notes`;
  2. CREATE TABLE IF NOT EXISTS`gr_strat` (
  3. `id` int(11) NOT NULL AUTO_INCREMENT,
  4. `name` varchar(64) NOT NULL,
  5. `useassigns` tinyint(4) NOT NULL DEFAULT '0',
  6. `primaryagentid` int(11) DEFAULT NULL,
  7. `maxamount` int(11) DEFAULT NULL,
  8. PRIMARY KEY (`id`)
  9. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  10. CREATE TABLE IF NOT EXISTS `gr_spec` (
  11. `id` int(11) NOT NULL AUTO_INCREMENT,
  12. `stratid` int(11) NOT NULL,
  13. `agentid` int(11) NOT NULL,
  14. `type` varchar(32) NOT NULL,
  15. `value` int(11) DEFAULT NULL,
  16. `customdata` text,
  17. PRIMARY KEY (`id`)
  18. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  19. ALTER TABLE `gr_strat` ADD `tariff` VARCHAR(64) NULL AFTER `maxamount`;
  20. CREATE TABLE IF NOT EXISTS `ddt_chargeopts` (
  21. `id` INT(11) NOT NULL AUTO_INCREMENT,
  22. `tariff` VARCHAR(40) NOT NULL,
  23. `untilday` INT(11) DEFAULT NULL,
  24. `chargefee` tinyint(4) NOT NULL,
  25. `absolute` INT(11) DEFAULT NULL,
  26. `creditdays` INT(11) NOT NULL,
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  29. CREATE TABLE IF NOT EXISTS `ddt_charges` (
  30. `id` INT(11) NOT NULL AUTO_INCREMENT,
  31. `login` VARCHAR(32) NOT NULL,
  32. `chargedate` DATE NOT NULL,
  33. `tariff` VARCHAR(40) NOT NULL,
  34. `summ` DOUBLE NOT NULL DEFAULT 0,
  35. PRIMARY KEY (`id`)
  36. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;