Skip to content
Snippets Groups Projects
Commit f36b456c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #37373 by killes: bugfix: vocabulary_node_types was broken.

parent 08098a34
No related branches found
No related tags found
No related merge requests found
......@@ -822,7 +822,7 @@ CREATE TABLE vocabulary (
CREATE TABLE vocabulary_node_types (
vid int(10) unsigned NOT NULL DEFAULT '0',
type varchar(16) NOT NULL DEFAULT '',
type varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (vid, type)
) TYPE=MyISAM;
......
......@@ -819,7 +819,7 @@ CREATE TABLE vocabulary (
CREATE TABLE vocabulary_node_types (
vid integer NOT NULL default '0',
type varchar(16) NOT NULL default '',
type varchar(32) NOT NULL default '',
PRIMARY KEY (vid, type)
);
......
......@@ -1406,3 +1406,18 @@ function system_update_166() {
return $ret;
}
function system_update_167() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
$ret[] = update_sql("ALTER TABLE {vocabulary_node_types} CHANGE type varchar(32) NOT NULL default ''");
break;
case 'pgsql':
db_change_column($ret, 'vocabulary_node_types', 'type', 'type', 'varchar(32)', array('not null' => TRUE, 'default' => "''"));
break;
}
return $ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment