Closed (fixed)
Project:
Drush
Version:
All-Versions-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2009 at 01:59 UTC
Updated:
16 Jun 2010 at 16:57 UTC
I have a 6.x multisite that needs an update to the Link module (2.5 > 2.6). All modules are in sites/all/modules. I ran the below command from sites/sitename.
This site apparently had the Date module installed a while back but was removed without uninstalling. If I run update.php from a browser, Drupal whines about being unable to update the module's data. The module is present but not enabled. (It's used by other sites, just not this one.)
This is admittedly a boundary condition. Yes, I know that I could probably enable the module and everything would be happy (and then I could back and uninstall the module's data before disabling it again). But drush should give warnings, not bomb out.
[hulk]$ drush update
Refreshing update status information ...
Done.
Update information last refreshed: Thu, 07/09/2009 - 20:45
Update status information on all installed and enabled Drupal modules:
Name Installed version Proposed version Status
Administration menu 6.x-1.5 6.x-1.5 Up to date
Advanced help 6.x-1.2 6.x-1.2 Up to date
Drupal 6.13 6.13 Up to date
Automatic Nodetitles 6.x-1.1 6.x-1.1 Up to date
Autosave 6.x-1.1 6.x-1.1 Up to date
Content Construction 6.x-2.4 6.x-2.4 Up to date
Kit (CCK)
Date 6.x-2.2 6.x-2.2 Up to date
DHTML Menu 6.x-3.5 6.x-3.5 Up to date
Diff 6.x-2.0 6.x-2.0 Up to date
Global Redirect 6.x-1.2 6.x-1.2 Up to date
Google Analytics 6.x-2.2 6.x-2.2 Up to date
Link 6.x-2.5 6.x-2.6 Update available
Pathauto 6.x-1.1 6.x-1.1 Up to date
Poormanscron 6.x-1.0 6.x-1.0 Up to date
Token 6.x-1.12 6.x-1.12 Up to date
Views 6.x-2.6 6.x-2.6 Up to date
Wysiwyg 6.x-2.0 6.x-2.0 Up to date
Framework 6.x-2.4 6.x-2.4 Up to date
Code updates will be made to the following projects:
Link [link-6.x-2.6]
Note: Updated modules can potentially break your site. It's not recommended to update production sites without prior testing.
Note: A backup of your package will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue? (y/n): y
Project link was updated successfully. Installed version is now 6.x-2.6.
Backups were saved into the directory [ok]
/home/arencambre/drupal6/backup/modules/20090709184555.
Cache cleared.
You have pending database updates. Please run `drush updatedb` or [warning]
visit update.php in your browser.
date.module has updates and is available in the modules folder but is[error]
not enabled.<br />If and when it is enabled, you will need to re-run
the update script. You will continue to see this message until the
module is enabled and updates are run.
date.module has updates and is available in the modules folder but is[error]
not enabled.<br />If and when it is enabled, you will need to re-run
the update script. You will continue to see this message until the
module is enabled and updates are run.
date.module has updates and is available in the modules folder but is[error]
not enabled.<br />If and when it is enabled, you will need to re-run
the update script. You will continue to see this message until the
module is enabled and updates are run.
date.module has updates and is available in the modules folder but is[error]
not enabled.<br />If and when it is enabled, you will need to re-run
the update script. You will continue to see this message until the
module is enabled and updates are run.
ALTER TABLE {content_field_url} CHANGE field_url_url `field_url_url` [success]
VARCHAR(255) DEFAULT NULL
UPDATE {content_field_url} SET field_url_url = NULL WHERE [success]
field_url_url = '' OR field_url_url = 'N;'
ALTER TABLE {content_field_url} CHANGE field_url_title [success]
`field_url_title` VARCHAR(255) DEFAULT NULL
UPDATE {content_field_url} SET field_url_title = NULL WHERE [success]
field_url_title = '' OR field_url_title = 'N;'
ALTER TABLE {content_field_url} CHANGE field_url_attributes [success]
`field_url_attributes` MEDIUMTEXT DEFAULT NULL
UPDATE {content_field_url} SET field_url_attributes = NULL WHERE [success]
field_url_attributes = '' OR field_url_attributes =
'N;'
ALTER TABLE {content_type_move_over_law} CHANGE field_link_url [success]
`field_link_url` VARCHAR(255) DEFAULT NULL
UPDATE {content_type_move_over_law} SET field_link_url = NULL WHERE [success]
field_link_url = '' OR field_link_url = 'N;'
ALTER TABLE {content_type_move_over_law} CHANGE field_link_title [success]
`field_link_title` VARCHAR(255) DEFAULT NULL
UPDATE {content_type_move_over_law} SET field_link_title = NULL WHERE[success]
field_link_title = '' OR field_link_title = 'N;'
ALTER TABLE {content_type_move_over_law} CHANGE field_link_attributes[success]
`field_link_attributes` MEDIUMTEXT DEFAULT NULL
UPDATE {content_type_move_over_law} SET field_link_attributes = NULL [success]
WHERE field_link_attributes = '' OR field_link_attributes =
'N;'
Finished performing updates. [ok]
An error occurred at function : drush_core_updatedb [error]
The following updates are pending:
date module
6000 - Granularity options were not saved correctly by CCK if created using
checkboxes. Checkboxes have been changed back to a select and we need to fix
the values stored in the settings. The bad values would have been stored
in the form array( 'year' => 'year' 'month' => 'month',
'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, );
Good values would have been stored in the form array( 'year' =>
'year', 'month' => 'month', ); This might or might not have gotten
updated in D5.2, we need to force it again in D6 just in case. @return
unknown
6001 - Get rid of jscalendar popup widget. Originally update_5201, but that
was broken.
6002 - Switch to using different widgets for repeating dates so non-repeats
can use standard Content module multiple values handling.
6003 - Update all repeating date delta values with the RRULE so we can use
that info in Views when we pull individual items out in a query.
6004 - Empty the stored db for timezones that use timezone 'none'.
6005 - description not available
link module
6000 - Ensure that content.module is updated before link module.
6001 - Change the database schema to allow NULL values.
Do you wish to run all pending updates? (y/n): y
An error occurred at function : drush_pm_post_update [error]
Comments
Comment #1
moshe weitzman commentedvery old. please reopen if still a problem.