Commit 3d53cebe authored by yched's avatar yched

#107208 : remove MyISAM enforcement

parent 7e69a918
......@@ -19,6 +19,7 @@ General
- 99672 Improved UI for setting weights and groups on field overview page
- 79887 Default field theming does not display label on empty fields.
- 88135 Views handling of multiple fields : allow option to group multiple fields together.
- 107208 make db tables storage-agnostic (remove MyISAM enforcement)
- Slightly optimized .inc files include
- Misc code cleanup
......
......@@ -15,7 +15,7 @@ function content_install() {
help mediumtext NOT NULL,
title_label varchar(255) NOT NULL default '',
PRIMARY KEY (type_name)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
db_query("CREATE TABLE {node_field} (
field_name varchar(32) NOT NULL default '',
type varchar(127) NOT NULL default '',
......@@ -24,7 +24,7 @@ function content_install() {
multiple int NOT NULL default '0',
db_storage int NOT NULL default '0',
PRIMARY KEY (field_name)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
db_query("CREATE TABLE {node_field_instance} (
field_name varchar(32) NOT NULL default '',
type_name varchar(32) NOT NULL default '',
......@@ -34,7 +34,7 @@ function content_install() {
widget_settings mediumtext NOT NULL,
description mediumtext NOT NULL,
PRIMARY KEY (field_name,type_name)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
......@@ -124,7 +124,7 @@ function content_update_4() {
vid int unsigned NOT NULL default '0',
nid int unsigned NOT NULL default '0',
PRIMARY KEY (vid)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
......
......@@ -158,7 +158,7 @@ function _content_admin_type_edit_submit($form_id, $form_values) {
vid int unsigned NOT NULL default '0',
nid int unsigned NOT NULL default '0',
PRIMARY KEY (vid)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
......@@ -978,7 +978,7 @@ function content_alter_db_field($previous_field, $previous_columns, $new_field,
delta int unsigned NOT NULL default '0',
nid int unsigned NOT NULL default '0',
PRIMARY KEY (vid,delta)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
......@@ -999,7 +999,7 @@ function content_alter_db_field($previous_field, $previous_columns, $new_field,
vid int unsigned NOT NULL default '0',
nid int unsigned NOT NULL default '0',
PRIMARY KEY (vid)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
......
......@@ -13,13 +13,13 @@ function fieldgroup_install() {
`description` mediumtext NOT NULL,
`weight` tinyint(4) NOT NULL,
PRIMARY KEY(`type_name`, `group_name`)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
db_query("CREATE TABLE {node_group_fields} (
`type_name` varchar(32) NOT NULL default '',
`group_name` varchar(32) NOT NULL default '',
`field_name` varchar(32) NOT NULL default '',
PRIMARY KEY(`type_name`, `group_name`, `field_name`)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
db_query("CREATE TABLE {node_group} (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment