From 0edf4280fa32a04243b5e3b28d16571293a4b249 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 16 Jan 2010 23:25:11 +0000 Subject: [PATCH] fix dbschema table git-svn-id: http://www.observium.org/svn/observer/trunk@702 61d68cd4-352d-0410-923a-c4978735b2b8 --- database-update.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database-update.sql b/database-update.sql index 8d0ae4bf9c..077616cd4b 100644 --- a/database-update.sql +++ b/database-update.sql @@ -74,4 +74,5 @@ ALTER TABLE `devices` CHANGE `os` `os` VARCHAR( 32 ) NULL DEFAULT NULL; ALTER TABLE `temperature` ADD `temp_precision` INT(11) NULL DEFAULT '1'; UPDATE temperature SET temp_precision=10 WHERE temp_tenths=1; ALTER TABLE `temperature` DROP `temp_tenths`; -CREATE TABLE IF NOT EXISTS `dbSchema` ( `revision` int(11), KEY `revision` (`revision`)) ENGINE=MyISAM DEFAULT CHARSET=latin1; +CREATE TABLE IF NOT EXISTS `dbSchema` ( `revision` int(11) NOT NULL default '0', PRIMARY KEY (`revision`)) ENGINE=MyISAM DEFAULT CHARSET=latin1; + \ No newline at end of file