remove DEFAULT CHARSET (doesnt work on mysql 4.x) and switch ENGINE to TYPE for consistency

This commit is contained in:
james 2006-07-12 14:41:42 +00:00
parent f117fb3dae
commit 66efd08ee3
2 changed files with 4 additions and 4 deletions

View File

@ -820,7 +820,7 @@ CREATE TABLE `questions` (
`required` enum('no','yes') NOT NULL default 'yes',
`ord` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) TYPE = MyISAM;
-- --------------------------------------------------------
@ -835,7 +835,7 @@ CREATE TABLE `question_answers` (
`answer` varchar(32) NOT NULL default '',
`year` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) TYPE = MyISAM;
-- Now insert everything

View File

@ -14,7 +14,7 @@ CREATE TABLE `questions` (
`required` enum('no','yes') NOT NULL default 'yes',
`ord` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) TYPE = MyISAM;
-- --------------------------------------------------------
@ -29,7 +29,7 @@ CREATE TABLE `question_answers` (
`answer` varchar(32) NOT NULL default '',
`year` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) TYPE = MyISAM;
-- Now insert everything
INSERT INTO `questions` (`id`, `year`, `section`, `db_heading`, `question`, `type`, `required`, `ord`) VALUES ('', -1, 'judgereg', 'Years School', 'Years of judging experience at a School level:', 'int', 'yes', 1);