Code: Select all
$upgrade[] = Array('CreateTableSQL',Array(config_get('mantis_config_table'),"
config_id C(64) NOTNULL PRIMARY,
project_id I DEFAULT '0' PRIMARY,
user_id I DEFAULT '0' PRIMARY,
access_reqd I DEFAULT '0',
type I DEFAULT '90',
value XS NOTNULL",
Code: Select all
CREATE TABLE `mantis_config_table` (
`config_id` varchar(64) NOT NULL default '',
`project_id` int(11) NOT NULL default '0',
`user_id` int(11) NOT NULL default '0',
`access_reqd` int(11) default '0',
`type` int(11) default '90',
`value` text NOT NULL,
PRIMARY KEY (`config_id`,`project_id`,`user_id`),
KEY `idx_config` (`config_id`)
) TYPE=MyISAM;
(I haven't gone to the MySQL docs to see whether XS is a deprecated type definition that no longer works in v5 or something.)