Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443488
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443488
Commits
e42450e4
Commit
e42450e4
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#490074
by andypost, bjaspan, catch: fix upgrade path from Drupal 6 to Drupal 7.
parent
19302728
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/node/node.install
+1
-1
1 addition, 1 deletion
modules/node/node.install
modules/system/system.install
+19
-0
19 additions, 0 deletions
modules/system/system.install
modules/taxonomy/taxonomy.install
+0
-16
0 additions, 16 deletions
modules/taxonomy/taxonomy.install
with
20 additions
and
17 deletions
modules/node/node.install
+
1
−
1
View file @
e42450e4
...
@@ -398,7 +398,7 @@ function node_update_7004() {
...
@@ -398,7 +398,7 @@ function node_update_7004() {
// Map old preview setting to new values order.
// Map old preview setting to new values order.
$original_preview
?
$original_preview
=
2
:
$original_preview
=
1
;
$original_preview
?
$original_preview
=
2
:
$original_preview
=
1
;
$
node_type
s
_clear
();
node_type_clear
();
$type_list
=
node_type_get_types
();
$type_list
=
node_type_get_types
();
// Apply original settings to all types.
// Apply original settings to all types.
...
...
This diff is collapsed.
Click to expand it.
modules/system/system.install
+
19
−
0
View file @
e42450e4
...
@@ -3554,11 +3554,30 @@ function system_update_7026() {
...
@@ -3554,11 +3554,30 @@ function system_update_7026() {
function
system_update_7027
()
{
function
system_update_7027
()
{
$ret
=
array
();
$ret
=
array
();
$module_list
=
array
(
'text'
,
'number'
,
'list'
,
'options'
);
$module_list
=
array
(
'text'
,
'number'
,
'list'
,
'options'
);
db_delete
(
'system'
)
->
condition
(
'type'
,
'module'
)
->
condition
(
'name'
,
$module_list
)
->
execute
();
drupal_install_modules
(
$module_list
);
drupal_install_modules
(
$module_list
);
module_enable
(
$module_list
);
module_enable
(
$module_list
);
return
$ret
;
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"
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
* The next series of updates should start at 8000.
...
...
This diff is collapsed.
Click to expand it.
modules/taxonomy/taxonomy.install
+
0
−
16
View file @
e42450e4
...
@@ -337,22 +337,6 @@ function taxonomy_schema() {
...
@@ -337,22 +337,6 @@ function taxonomy_schema() {
return
$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.
* Add vocabulary machine_name column.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment