2008-12-20, 01:16 PM
There is one small mistake while creating the new templates table (if reversion is wished)
Should be
if($system_upgrade_detail['revert_all_templates'] > 0)
{
$db->drop_table("templates");
$db->write_query("CREATE TABLE ".TABLE_PREFIX."templates (
tid int unsigned NOT NULL auto_increment,
title varchar(120) NOT NULL default '',
template text NOT NULL,
sid int(10) NOT NULL default '0',
version varchar(20) NOT NULL default '0',
status varchar(10) NOT NULL default '',
dateline int(10) NOT NULL default '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;{$charset}");
}
Should be
if($system_upgrade_detail['revert_all_templates'] > 0)
{
$db->drop_table("templates");
$db->write_query("CREATE TABLE ".TABLE_PREFIX."templates (
tid int unsigned NOT NULL auto_increment,
title varchar(120) NOT NULL default '',
template text NOT NULL,
sid int(10) NOT NULL default '0',
version varchar(20) NOT NULL default '0',
status varchar(10) NOT NULL default '',
dateline int(10) NOT NULL default '0',
PRIMARY KEY (tid)
) TYPE=MyISAM{$charset};");
}