diff --git a/src/include/db_template.txt b/src/include/db_template.txt index ad836a5..780e2b5 100644 --- a/src/include/db_template.txt +++ b/src/include/db_template.txt @@ -112,7 +112,7 @@ CREATE TABLE IF NOT EXISTS `logcon_views` ( `userid` int(11) default NULL, `groupid` int(11) default NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Stores custom defined user views.' AUTO_INCREMENT=1 ; +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores custom defined user views.' AUTO_INCREMENT=1 ; -- -- Table structure for table `logcon_charts` @@ -131,7 +131,7 @@ CREATE TABLE IF NOT EXISTS `logcon_charts` ( `userid` int(11) default NULL, `groupid` int(11) default NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table contains all configured charts' AUTO_INCREMENT=1 ; +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table contains all configured charts' AUTO_INCREMENT=1 ; -- -- Table structure for table `logcon_fields` @@ -151,3 +151,15 @@ CREATE TABLE `logcon_fields` ( `Trunscate` int(11) NOT NULL, PRIMARY KEY (`FieldID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table stores custom fields'; + +-- +-- Table structure for table `logcon_dbmappings` +-- + +DROP TABLE IF EXISTS `logcon_dbmappings`; +CREATE TABLE `logcon_dbmappings` ( + `ID` int(11) NOT NULL auto_increment, + `DisplayName` varchar(64) NOT NULL, + `Mappings` varchar(1024) NOT NULL, + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; diff --git a/src/include/db_update_v3.txt b/src/include/db_update_v3.txt index 5c2df9e..30e6051 100644 --- a/src/include/db_update_v3.txt +++ b/src/include/db_update_v3.txt @@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS `logcon_charts` ( `userid` int(11) default NULL, `groupid` int(11) default NULL, PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table contains all configured charts' AUTO_INCREMENT=1 ; +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table contains all configured charts' AUTO_INCREMENT=1 ; -- Insert data INSERT INTO `logcon_charts` (`ID`, `DisplayName`, `chart_enabled`, `chart_type`, `chart_width`, `chart_field`, `maxrecords`, `showpercent`, `userid`, `groupid`) VALUES (1, 'Top Hosts', 1, 3, 400, 'FROMHOST', 10, 0, NULL, NULL);