summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install33
1 files changed, 7 insertions, 26 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 3981cfdda..19908ee0d 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3086,29 +3086,10 @@ function system_update_7011() {
}
/**
- * Make tables case-sensitive on MySQL.
- */
-function system_update_7012() {
- $ret = array();
- if (db_driver() == 'mysql') {
- // Table names as used in D6. Some have changed and are no longer reported
- // by hook_schema(). The list is generated using the following command:
- // grep -r "^ \+\$schema\['[a-z_]\+'\] =" modules | cut -d\' -f2 | sort -u | xargs -I '*' echo -n "'*', "
- $tables = array('access', 'accesslog', 'actions', 'actions_aid', 'aggregator_category', 'aggregator_category_feed', 'aggregator_category_item', 'aggregator_feed', 'aggregator_item', 'authmap', 'batch', 'blocks', 'blocks_roles', 'blogapi_files', 'book', 'book_temp', 'boxes', 'cache', 'cache_block', 'cache_filter', 'cache_form', 'cache_menu', 'cache_page', 'cache_update', 'comments', 'contact', 'files', 'filter_formats', 'filters', 'flood', 'forum', 'history', 'languages', 'locales_source', 'locales_target', 'menu_custom', 'menu_links', 'menu_router', 'node', 'node_access', 'node_comment_statistics', 'node_counter', 'node_revisions', 'node_type', 'openid_association', 'permission', 'poll', 'poll_choices', 'poll_votes', 'profile_fields', 'profile_values', 'role', 'search_dataset', 'search_index', 'search_node_links', 'search_total', 'sessions', 'system', 'term_data', 'term_hierarchy', 'term_node', 'term_relation', 'term_synonym', 'trigger_assignments', 'upload', 'url_alias', 'users', 'users_roles', 'variable', 'vocabulary', 'vocabulary_node_types', 'watchdog');
- foreach ($tables as $table) {
- if (db_table_exists($table)) {
- $ret[] = update_sql('ALTER TABLE {' . $table . '} CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin');
- }
- }
- }
- return $ret;
-}
-
-/**
* Rename {blocks} table to {block}, {blocks_roles} to {block_role} and
* {boxes} to {box}.
*/
-function system_update_7013() {
+function system_update_7012() {
$ret = array();
db_rename_table($ret, 'blocks', 'block');
db_rename_table($ret, 'blocks_roles', 'block_role');
@@ -3119,7 +3100,7 @@ function system_update_7013() {
/**
* Convert default time zone offset to default time zone name.
*/
-function system_update_7014() {
+function system_update_7013() {
$ret = array();
$timezone = NULL;
$timezones = system_time_zones();
@@ -3160,7 +3141,7 @@ function system_update_7014() {
/**
* Drop the bootstrap column from the {system} table.
*/
-function system_update_7015() {
+function system_update_7014() {
$ret = array();
db_drop_field($ret, 'system', 'bootstrap');
return $ret;
@@ -3169,7 +3150,7 @@ function system_update_7015() {
/**
* Change the user logout path.
*/
-function system_update_7016() {
+function system_update_7015() {
$ret = array();
$ret[] = update_sql("UPDATE {menu_links} SET link_path = 'user/logout' WHERE link_path = 'logout'");
$ret[] = update_sql("UPDATE {menu_links} SET router_path = 'user/logout' WHERE router_path = 'logout'");
@@ -3179,7 +3160,7 @@ function system_update_7016() {
/**
* Remove custom datatype *_unsigned in PostgreSQL.
*/
-function system_update_7017() {
+function system_update_7016() {
$ret = array();
// Only run these queries if the driver used is pgsql.
if (db_driver() == 'pgsql') {
@@ -3213,7 +3194,7 @@ function system_update_7017() {
/**
* Change the theme setting 'toggle_node_info' into a per content type variable.
*/
-function system_update_7018() {
+function system_update_7017() {
$ret = array();
$types = node_get_types();
if (count($types)) {
@@ -3242,7 +3223,7 @@ function system_update_7018() {
/**
* Shorten the {system}.type column and add an index on type and name.
*/
-function system_update_7019() {
+function system_update_7018() {
$ret = array();
db_drop_index($ret, 'system', 'modules');
db_change_field($ret, 'system', 'type', 'type', array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => ''));