Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Juste after update from webform-6.x-2.9 to 3.1, I observed the following:
Tables for which the schema and database are different.
formulaire
-
webform
- column confirmation_format - difference on: size
declared: array('description' => t('TODO: please describe this field!'), 'type' => 'int', 'not null' => TRUE, 'default' => 0)
actual: array('description' => t('TODO: please describe this field!'), 'type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0) - additional_validate: unexpected column in database
- additional_submit: unexpected column in database
- column confirmation_format - difference on: size
Comment | File | Size | Author |
---|---|---|---|
#5 | webform_schema_confirmation_format.patch | 1.04 KB | quicksketch |
Comments
Comment #1
nardberjean CreditAttribution: nardberjean commentedMore information about update process:
The following queries were executed
webform module
Update #6301
Update #6302
`nid` INT unsigned NOT NULL DEFAULT 0,
`eid` SMALLINT unsigned NOT NULL DEFAULT 0,
`email` TEXT DEFAULT NULL,
`subject` VARCHAR(255) DEFAULT NULL,
`from_name` VARCHAR(255) DEFAULT NULL,
`from_address` VARCHAR(255) DEFAULT NULL,
`template` TEXT DEFAULT NULL,
PRIMARY KEY (nid, eid)
) /*!40100 DEFAULT CHARACTER SET UTF8 */
Update #6303
Update #6304
Update #6305
Update #6306
Update #6307
Update #6308
Update #6309
Update #6310
Update #6311
Update #6312
Update #6313
Update #6314
Update #6315
Update #6316
Update #6317
Comment #2
quicksketchThanks, the only thing that's unexpected here is the "size" difference on the confirmation_format column. The other two columns "additional_validate" and "additional_submit" are intentionally left in place in case you want to use http://drupal.org/project/webform_php later. If you don't want those columns, you could install Webform PHP and then uninstall it, which will remove the columns.
Comment #3
nardberjean CreditAttribution: nardberjean commentedThanks for explanation! I imagine I can also drop the 2 columns with phpmyadmin... I droped both tables and resized the other one successfully with phpmyadmin
Comment #4
quicksketchYeah that definitely works also. :-)
Comment #5
quicksketchI've committed this patch which will change the "confirmation_format" to be consistent for all users, converting it to a "tinyint" column like other Boolean columns used by Webform.
Comment #6
quicksketch