Added new table into database template script

This commit is contained in:
Andre Lorbach 2009-03-26 10:32:32 +01:00
parent f173f4cae2
commit e2981567d1
2 changed files with 15 additions and 3 deletions

View File

@ -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 ;

View File

@ -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);