- Patch #490074 by andypost, bjaspan, catch: fix upgrade path from Drupal 6 to Drupal 7.

merge-requests/26/head
Dries Buytaert 2009-06-18 15:46:30 +00:00
parent 19302728e8
commit e42450e4ad
3 changed files with 20 additions and 17 deletions

View File

@ -398,7 +398,7 @@ function node_update_7004() {
// Map old preview setting to new values order.
$original_preview ? $original_preview = 2 : $original_preview = 1;
$node_types_clear();
node_type_clear();
$type_list = node_type_get_types();
// Apply original settings to all types.

View File

@ -3554,11 +3554,30 @@ function system_update_7026() {
function system_update_7027() {
$ret = array();
$module_list = array('text', 'number', 'list', 'options');
db_delete('system')->condition('type', 'module')->condition('name', $module_list)->execute();
drupal_install_modules($module_list);
module_enable($module_list);
return $ret;
}
/**
* Rename taxonomy tables.
*/
function system_update_7028() {
$ret = array();
db_rename_table($ret, 'term_data', 'taxonomy_term_data');
db_rename_table($ret, 'term_hierarchy', 'taxonomy_term_hierarchy');
db_rename_table($ret, 'term_node', 'taxonomy_term_node');
db_rename_table($ret, 'term_relation', 'taxonomy_term_relation');
db_rename_table($ret, 'term_synonym', 'taxonomy_term_synonym');
db_rename_table($ret, 'vocabulary', 'taxonomy_vocabulary');
db_rename_table($ret, 'vocabulary_node_types', 'taxonomy_vocabulary_node_type');
return $ret;
}
/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.

View File

@ -337,22 +337,6 @@ function taxonomy_schema() {
return $schema;
}
/**
* Rename taxonomy tables.
*/
function taxonomy_update_7001() {
$ret = array();
db_rename_table($ret, 'term_data', 'taxonomy_term_data');
db_rename_table($ret, 'term_hierarchy', 'taxonomy_term_hierarchy');
db_rename_table($ret, 'term_node', 'taxonomy_term_node');
db_rename_table($ret, 'term_relation', 'taxonomy_term_relation');
db_rename_table($ret, 'term_synonym', 'taxonomy_term_synonym');
db_rename_table($ret, 'vocabulary', 'taxonomy_vocabulary');
db_rename_table($ret, 'vocabulary_node_types', 'taxonomy_vocabulary_node_type');
return $ret;
}
/**
* Add vocabulary machine_name column.
*/