Commit 6a364c39 authored by Leigh Stoller's avatar Leigh Stoller

Fix schema messup.

parent 638b8731
......@@ -2898,7 +2898,7 @@ DROP TABLE IF EXISTS `node_rf_reports`;
CREATE TABLE `node_rf_reports` (
`node_id` varchar(32) NOT NULL DEFAULT '',
`tstamp` datetime NOT NULL default '0000-00-00 00:00:00',
`which` enum('system','user') default 'user',
`which` enum('system','user') NOT NULL default 'user',
`report` text NOT NULL,
PRIMARY KEY (`node_id`,`which`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
......@@ -12,7 +12,7 @@ sub DoUpdate($$$)
DBQueryFatal("CREATE TABLE `node_rf_reports` ( ".
" `node_id` varchar(32) NOT NULL DEFAULT '', ".
" `tstamp` datetime NOT NULL default '0000-00-00 00:00:00',".
" `which` enum('system','user') default 'user', ".
" `which` enum('system','user') NOT NULL default 'user', ".
" `report` text NOT NULL, ".
" PRIMARY KEY (`node_id`,`which`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment