Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e3cbacc3
Commit
e3cbacc3
authored
Feb 03, 2008
by
Gábor Hojtsy
Browse files
#215992
by dww: provide information for upgrades from Drupal 5 with update status module
parent
60cb54b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.txt
View file @
e3cbacc3
...
...
@@ -90,6 +90,8 @@ Drupal 6.0, xxxx-xx-xx (development version)
- Added support for triggering configurable actions.
- Added the Update status module to automatically check for available updates
and warn sites if they are missing security updates or newer versions.
Sites deploying from CVS should use http://drupal.org/project/cvs_deploy.
Advanced settings provided by http://drupal.org/project/update_advanced.
- Upgraded the core JavaScript library to jQuery version 1.2.
- Added a new Schema API, which provides built-in support for core and
contributed modules to work with databases other than MySQL.
...
...
modules/update/update.install
View file @
e3cbacc3
...
...
@@ -7,6 +7,8 @@
function
update_install
()
{
// Create cache table.
drupal_install_schema
(
'update'
);
// Remove stale variables from update_status 5.x contrib, if any.
_update_remove_update_status_variables
();
}
/**
...
...
@@ -38,3 +40,25 @@ function update_schema() {
return
$schema
;
}
/**
* Private helper to clear out stale variables from update_status 5.x contrib.
*
* @see update_install()
* @see update_update_6000()
*/
function
_update_remove_update_status_variables
()
{
variable_del
(
'update_status_settings'
);
variable_del
(
'update_status_notify_emails'
);
variable_del
(
'update_status_check_frequency'
);
variable_del
(
'update_status_notification_threshold'
);
variable_del
(
'update_status_last'
);
variable_del
(
'update_status_fetch_url'
);
}
/**
* Clear out stale variables from update_status.
*/
function
update_update_6000
()
{
_update_remove_update_status_variables
();
return
array
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment