Skip to content
Snippets Groups Projects
Unverified Commit f5ab3225 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18480 from eileenmcnaughton/dom_org

#2039 Set is_primary to 1 on email, address for domain contacts
parents a1f33922 839e7bf1
Branches
Tags
No related merge requests found
This diff is collapsed.
......@@ -10,13 +10,13 @@ SELECT @addId := id from civicrm_address where street_address = '15 Main St';
INSERT INTO civicrm_email (contact_id, location_type_id, email, is_primary, is_billing, on_hold, hold_date, reset_date)
VALUES
(@contactID, 1, '"Domain Email" <domainemail2@example.org>', 0, 0, 0, NULL, NULL);
(@contactID, 1, 'domainemail2@example.org', 1, 0, 0, NULL, NULL);
SELECT @emailId := id from civicrm_email where email = 'domainemail2@example.org';
INSERT INTO civicrm_phone (contact_id, location_type_id, is_primary, is_billing, mobile_provider_id, phone, phone_type_id)
VALUES
(@contactID, 1, 0, 0, NULL,'204 555-1001', 1);
(@contactID, 1, 1, 0, NULL,'204 555-1001', 1);
SELECT @phoneId := id from civicrm_phone where phone = '204 555-1001';
......
......@@ -33,7 +33,7 @@ SET @contactID := LAST_INSERT_ID();
INSERT INTO civicrm_email (contact_id, location_type_id, email, is_primary, is_billing, on_hold, hold_date, reset_date)
VALUES
(@contactID, 1, 'fixme.domainemail@example.org', 0, 0, 0, NULL, NULL);
(@contactID, 1, 'fixme.domainemail@example.org', 1, 0, 0, NULL, NULL);
INSERT INTO civicrm_domain (name, version, contact_id) VALUES (@domainName, '2.2', @contactID);
SELECT @domainID := id FROM civicrm_domain where name = 'Default Domain Name';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment