mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Updated Database template
This commit is contained in:
parent
be7b23983c
commit
7d6c73cff4
@ -96,6 +96,7 @@ CREATE TABLE IF NOT EXISTS `logcon_users` (
|
|||||||
`username` varchar(32) NOT NULL,
|
`username` varchar(32) NOT NULL,
|
||||||
`password` varchar(32) NOT NULL,
|
`password` varchar(32) NOT NULL,
|
||||||
`is_admin` tinyint(1) NOT NULL default '0',
|
`is_admin` tinyint(1) NOT NULL default '0',
|
||||||
|
`is_readonly` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`last_login` int(4) NOT NULL,
|
`last_login` int(4) NOT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Table for the phplogcon users' AUTO_INCREMENT=1 ;
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Table for the phplogcon users' AUTO_INCREMENT=1 ;
|
||||||
@ -181,3 +182,4 @@ CREATE TABLE `logcon_savedreports` (
|
|||||||
`scheduleSettings` text NOT NULL,
|
`scheduleSettings` text NOT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT = 'Table to store saved reports' AUTO_INCREMENT=1 ;
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT = 'Table to store saved reports' AUTO_INCREMENT=1 ;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ CREATE TABLE `logcon_savedreports` (
|
|||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT = 'Table to store saved reports' AUTO_INCREMENT=1 ;
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT = 'Table to store saved reports' AUTO_INCREMENT=1 ;
|
||||||
|
|
||||||
ALTER TABLE `logcon_users` ADD `is_readonly` BOOL NOT NULL DEFAULT '0' AFTER `is_admin` ;
|
ALTER TABLE `logcon_users` ADD `is_readonly` tinyint(1) NOT NULL DEFAULT '0' AFTER `is_admin` ;
|
||||||
|
|
||||||
-- Insert data
|
-- Insert data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user