While running through the process of doing a site upgrade from Drupal 6 to 7, I see the following error when I update the database schema with "drush updb":

Cannot change the definition of field rules_scheduler.state: field doesn't exist

It looks like this was already done.

We need a simple check to make sure that the field isn't there already. I'll have a patch ready in a few minutes.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

colan’s picture

Status: Active » Needs review
FileSize
1.23 KB

Here's the patch.

sja1’s picture

I encountered the same problem, and this patch worked for me. However, looking at rules_schedular.install, there is a chance we could get rid of update 7204 altogether.

The purpose of update 7204 is to rename rules_scheduler.state into rules_scheduler.data. However, it's not clear from the install file where a rules_scheduler.state field could have originated. Both in a fresh install and in an upgrade from 6.x, the D7 rules_scheduler table is built with rules_scheduler.data already, and no state field.

One would guess that this update exists because there was some earlier version of the install file that did create a state field. If so, perhaps a comment could be added to that effect. If not, then udpate 7204 can be removed.

fago’s picture

Status: Needs review » Fixed

Thanks, committed. Sure, the update migrates from a previous version - that is what updates are for.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.