Closed (fixed)
Project:
MySite
Version:
5.x-2.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 May 2007 at 13:28 UTC
Updated:
17 May 2007 at 15:12 UTC
There is a typo in the function mysite_update_5() inside of the mysite.install file. Replace the function with:
/**
* Second update to v. 5.x.2
*/
function mysite_update_5() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD format smallint(6) default NULL;");
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD base varchar(255) default NULL;");
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD xml varchar(255) default NULL;");
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD INDEX (title);");
$ret[] = update_sql("ALTER TABLE {mysite_data} ADD settings text;");
break;
case 'pgsql':
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD format integer default NULL;");
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD base varchar(255) default NULL;");
$ret[] = update_sql("ALTER TABLE {mysite_content} ADD xml varchar(255) default NULL;");
$ret[] = update_sql("CREATE INDEX {mysite_content}_title_idx ON {mysite_content} (title);");
$ret[] = update_sql("ALTER TABLE {mysite_data} ADD settings text;");
break;
}
return $ret;
}
This has been fixed in HEAD.
Comments
Comment #1
agentrickardrolled into beta3.