Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | rules-check_before_renaming_field-2158635-1.patch | 1.23 KB | colan |
Comments
Comment #1
colanHere's the patch.
Comment #2
sja1 CreditAttribution: sja1 commentedI 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.
Comment #3
fagoThanks, committed. Sure, the update migrates from a previous version - that is what updates are for.