This might or might not be an issue, but on a large migration of customer profiles, when I was doing a rollback the following error prevented me from doing it:

WD commerce_customer_profile: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null: INSERT INTO {commerce_addressbook_defaults} [error]
(uid, type, profile_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
[:db_insert_placeholder_0] =>
[:db_insert_placeholder_1] =>
[:db_insert_placeholder_2] =>
)
in commerce_addressbook_set_default_profile() (line 478 of
/home/favio/web/drupal/ritualcleanse.com/public/profiles/ritualcleanse/modules/contrib/commerce_addressbook/commerce_addressbook.module).

So now I'm wondering if the entity field query in the module needs a:

->propertyCondition('uid', $profile->uid)

Because without it, the next profile it gets belongs to a different user. But it might be that something is wrong with my migration. xD

Thoughts? Thanks!

Comments

favrik’s picture

Status: Active » Closed (works as designed)

Well it was related to my migration. I still think it's a bit weird the uid condition is missing. Closing. :)