0.8.2.sql 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ALTER TABLE `stickynotes` ADD `remindtime` TIME DEFAULT NULL AFTER `reminddate`, ADD INDEX (`remindtime`) ;
  2. ALTER TABLE `employee` ADD `telegram` VARCHAR(40) NULL DEFAULT NULL AFTER `mobile`;
  3. CREATE TABLE IF NOT EXISTS `branches` (
  4. `id` int(11) NOT NULL AUTO_INCREMENT,
  5. `name` varchar(40) NOT NULL,
  6. PRIMARY KEY (`id`)
  7. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  8. CREATE TABLE IF NOT EXISTS `branchesadmins` (
  9. `id` int(11) NOT NULL AUTO_INCREMENT,
  10. `branchid` int(11) NOT NULL,
  11. `admin` varchar(40) NOT NULL,
  12. PRIMARY KEY (`id`)
  13. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  14. CREATE TABLE IF NOT EXISTS `branchesusers` (
  15. `id` int(11) NOT NULL AUTO_INCREMENT,
  16. `branchid` int(11) NOT NULL,
  17. `login` varchar(50) NOT NULL,
  18. PRIMARY KEY (`id`)
  19. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  20. CREATE TABLE IF NOT EXISTS `branchescities` (
  21. `id` int(11) NOT NULL AUTO_INCREMENT,
  22. `branchid` int(11) NOT NULL,
  23. `cityid` int(11) NOT NULL,
  24. PRIMARY KEY (`id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  26. CREATE TABLE IF NOT EXISTS `branchestariffs` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT,
  28. `branchid` int(11) NOT NULL,
  29. `tariff` varchar(50) NOT NULL,
  30. PRIMARY KEY (`id`)
  31. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  32. CREATE TABLE IF NOT EXISTS `branchesservices` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `branchid` int(11) NOT NULL,
  35. `serviceid` int(11) NOT NULL,
  36. PRIMARY KEY (`id`)
  37. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  38. CREATE TABLE IF NOT EXISTS `selling` (
  39. `id` INT NOT NULL AUTO_INCREMENT ,
  40. `name` VARCHAR(255) NOT NULL ,
  41. `address` VARCHAR(255) NULL ,
  42. `geo` VARCHAR(255) NULL ,
  43. `contact` VARCHAR(255) NULL ,
  44. `count_cards` int(11) NULL ,
  45. `comment` TEXT NULL ,
  46. PRIMARY KEY (`id`) )
  47. ENGINE = MyISAM DEFAULT CHARSET=UTF8;
  48. ALTER TABLE `cardbank` ADD `part` VARCHAR(255) NULL;
  49. ALTER TABLE `cardbank` ADD `receipt_date` DATETIME NULL;
  50. ALTER TABLE `cardbank` ADD `selling_id` int(11) NULL;
  51. CREATE TABLE IF NOT EXISTS `print_card` (
  52. `id` int(11) NOT NULL AUTO_INCREMENT,
  53. `title` varchar(255) NOT NULL,
  54. `field` varchar(255) NOT NULL,
  55. `color` varchar(255) DEFAULT '',
  56. `font_size` int(11) DEFAULT NULL,
  57. `top` int(11) DEFAULT NULL,
  58. `left` int(11) DEFAULT NULL,
  59. `text` text,
  60. PRIMARY KEY (`id`)
  61. ) ENGINE = MyISAM DEFAULT CHARSET=UTF8;
  62. INSERT INTO
  63. `print_card` (`title`, `field`, `color`, `font_size`, `top`, `left`, `text`)
  64. VALUES
  65. ('Serial number', 'number', '0.0.0', '12', '80', '130', 'Номер № {number}'),
  66. ('Serial part', 'serial', '0.0.0', '12', '80', '110', 'Серия {serial}'),
  67. ('Price', 'rating', '139.0.139', '16', '120', '90', 'Номинал {sum}грн. '),
  68. ('Phone', 'phone', '0.0.0', '8', '160', '3', '+38(096)xxx-xx-xx, +38(096)xxx-xx-xx, +38(096)xxx-xx-xx'),
  69. ('Site', 'site', '0.0.0', '10', '15', '5', 'Сайт: xxx.xxx.ua');
  70. ALTER TABLE `speeds` ADD `burstdownload` VARCHAR(45) DEFAULT NULL;
  71. ALTER TABLE `speeds` ADD `burstupload` VARCHAR(45) DEFAULT NULL;
  72. ALTER TABLE `speeds` ADD `bursttimedownload` VARCHAR(45) DEFAULT NULL;
  73. ALTER TABLE `speeds` ADD `burstimetupload` VARCHAR(45) DEFAULT NULL;
  74. ALTER TABLE `uhw_brute` ADD `login` VARCHAR(255) NOT NULL AFTER `password`;