From 7d6c73cff43e43df82e7a7b16d3a16fb6db602e8 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Wed, 24 Feb 2010 11:23:16 +0100 Subject: [PATCH] Updated Database template --- src/include/db_template.txt | 2 ++ src/include/db_update_v9.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/db_template.txt b/src/include/db_template.txt index 8b5c242..c859483 100644 --- a/src/include/db_template.txt +++ b/src/include/db_template.txt @@ -96,6 +96,7 @@ CREATE TABLE IF NOT EXISTS `logcon_users` ( `username` varchar(32) NOT NULL, `password` varchar(32) NOT NULL, `is_admin` tinyint(1) NOT NULL default '0', + `is_readonly` tinyint(1) NOT NULL DEFAULT '0', `last_login` int(4) NOT NULL, PRIMARY KEY (`ID`) ) 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, PRIMARY KEY (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT = 'Table to store saved reports' AUTO_INCREMENT=1 ; + diff --git a/src/include/db_update_v9.txt b/src/include/db_update_v9.txt index 269d0f9..2ae6966 100644 --- a/src/include/db_update_v9.txt +++ b/src/include/db_update_v9.txt @@ -14,7 +14,7 @@ CREATE TABLE `logcon_savedreports` ( PRIMARY KEY (`ID`) ) 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