1.0.4.sql 924 B

12345678910111213141516171819202122232425262728
  1. CREATE TABLE IF NOT EXISTS `envyscripts` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `modelid` int(11) NOT NULL,
  4. `data` TEXT DEFAULT NULL,
  5. PRIMARY KEY (`id`)
  6. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  7. CREATE TABLE IF NOT EXISTS `envydevices` (
  8. `id` int(11) NOT NULL AUTO_INCREMENT,
  9. `switchid` int(11) NOT NULL,
  10. `login` varchar(255) DEFAULT NULL,
  11. `password` varchar(255) DEFAULT NULL,
  12. `enablepassword` varchar(255) DEFAULT NULL,
  13. `custom1` varchar(255) DEFAULT NULL,
  14. PRIMARY KEY (`id`)
  15. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  16. CREATE TABLE IF NOT EXISTS `envydata` (
  17. `id` int(11) NOT NULL AUTO_INCREMENT,
  18. `switchid` int(11) NOT NULL,
  19. `date` datetime NOT NULL,
  20. `config` mediumtext,
  21. PRIMARY KEY (`id`),
  22. KEY `switchid` (`switchid`)
  23. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  24. ALTER TABLE `envydevices` ADD `active` TINYINT NULL DEFAULT '1' AFTER `switchid`;