Commit bd09a034 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fixes to report tables for mysql 3.23; must provide defaults when

declared NOT NULL (not necessary in 5.0).
parent 08737f67
......@@ -375,7 +375,7 @@ CREATE TABLE errors (
inferred tinyint(1) default NULL,
need_more_info tinyint(1) default NULL,
mesg text NOT NULL,
tblog_revision varchar(8) NOT NULL,
tblog_revision varchar(8) NOT NULL default '',
PRIMARY KEY (session,rank)
) TYPE=MyISAM;
......@@ -2157,7 +2157,7 @@ CREATE TABLE projects (
--
CREATE TABLE `report_assign_violation` (
`seq` int(10) unsigned NOT NULL,
`seq` int(10) unsigned NOT NULL default '0',
`unassigned` int(11) default NULL,
`pnode_load` int(11) default NULL,
`no_connect` int(11) default NULL,
......@@ -2178,7 +2178,7 @@ CREATE TABLE `report_assign_violation` (
--
CREATE TABLE `report_context` (
`seq` int(10) unsigned NOT NULL,
`seq` int(10) unsigned NOT NULL default '0',
`i0` int(11) default NULL,
`i1` int(11) default NULL,
`i2` int(11) default NULL,
......@@ -2193,14 +2193,14 @@ CREATE TABLE `report_context` (
--
CREATE TABLE `report_error` (
`seq` int(10) unsigned NOT NULL,
`stamp` int(10) unsigned NOT NULL,
`session` int(10) unsigned NOT NULL,
`invocation` int(10) unsigned NOT NULL,
`attempt` tinyint(1) NOT NULL,
`severity` smallint(3) NOT NULL,
`script` smallint(3) NOT NULL,
`error_type` varchar(255) NOT NULL,
`seq` int(10) unsigned NOT NULL default '0',
`stamp` int(10) unsigned NOT NULL default '0',
`session` int(10) unsigned NOT NULL default '0',
`invocation` int(10) unsigned NOT NULL default '0',
`attempt` tinyint(1) NOT NULL default '0',
`severity` smallint(3) NOT NULL default '0',
`script` smallint(3) NOT NULL default '0',
`error_type` varchar(255) NOT NULL default '',
PRIMARY KEY (`seq`),
KEY `session` (`session`)
) TYPE=MyISAM;
......
......@@ -3832,3 +3832,26 @@ last_net_act,last_cpu_act,last_ext_act);
alter table experiments add elabinelab_singlenet tinyint(1) \
NOT NULL default '0' after elabinelab_nosetup;
4.102: Fixes to report tables for mysql 3.23; must provide defaults
when declared NOT NULL.
alter table report_assign_violation change `seq`
`seq` int(10) unsigned NOT NULL default '0';
alter table report_context change `seq`
`seq` int(10) unsigned NOT NULL default '0';
alter table errors change tblog_revision
tblog_revision varchar(8) NOT NULL default '';
alter table report_error
change `seq` `seq` int(10) unsigned NOT NULL default '0',
change `stamp` `stamp` int(10) unsigned NOT NULL default '0',
change `session` `session` int(10) unsigned NOT NULL default '0',
change `invocation` `invocation` int(10) unsigned NOT NULL default '0',
change `attempt` `attempt` tinyint(1) NOT NULL default '0',
change `severity` `severity` smallint(3) NOT NULL default '0',
change `script` `script` smallint(3) NOT NULL default '0',
change `error_type` `error_type` varchar(255) NOT NULL default '';
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