Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
294
Merge Requests
294
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
e3cbacc3
Commit
e3cbacc3
authored
Feb 03, 2008
by
Gábor Hojtsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#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
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
CHANGELOG.txt
CHANGELOG.txt
+2
-0
modules/update/update.install
modules/update/update.install
+24
-0
No files found.
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
Markdown
is supported
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