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.
When migrating from D6 to D7 I got this error due to "is_primary" being a a tiny int
SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value adjusted for column 'is_primary' at row 1: ...... [:db_insert_placeholder_10] => 171 ) (..../includes/common.inc:7291)
which I fixed by editing location.migrate.inc line 121
if (!empty($instance_arguments)) {
- $instance_arguments['is_primary'] = $value;
+ $instance_arguments['is_primary'] = ($delta == 0);
$instance_arguments['inhibit_geocode'] = TRUE;
Hope thats useful
Comment | File | Size | Author |
---|---|---|---|
#1 | location-150421.patch | 733 bytes | Louis Delacretaz |
Comments
Comment #1
Louis Delacretaz CreditAttribution: Louis Delacretaz commentedI could not find any real definition of what the proper value of 'is_primary' should be except a link to a legacy civicrm usage. My patch is attached
Comment #3
podarokThanks, merged