Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify Charset and Collate for Sync tables. #344

Merged
merged 1 commit into from
Nov 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Specify Charset and Collate for Sync tables.
  • Loading branch information
root authored and cmolava committed Nov 9, 2020
commit 0065ee6de2c2d653e49d10e9563349e8ffb1f9be
5 changes: 3 additions & 2 deletions CRM/Mailchimp/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,7 @@ public function updateMailchimpFromCiviSingleContact($contact_id) {
if (!empty($tagsParams)) {
try {
$result = $api->post("/lists/$this->list_id/members/$subscriber_hash/tags", array('tags' => $tagsParams));
CRM_Mailchimp_Utils::checkDebug('Push tags on single sync.', $tagsParams);
} catch (CRM_Mailchimp_RequestErrorException $e) {
CRM_Core_Session::setStatus(ts('There was a problem trying to sync tags of this contact at Mailchimp:') . $e->getMessage());
}
Expand Down Expand Up @@ -1734,7 +1735,7 @@ public static function createTemporaryTableForMailchimp() {
tags VARCHAR(4096) NOT NULL DEFAULT '',
PRIMARY KEY (email, hash),
KEY (cid_guess))
ENGINE=InnoDB ;");
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;");

// Convenience in collectMailchimp.
return $dao;
Expand Down Expand Up @@ -1766,7 +1767,7 @@ public static function createTemporaryTableForCiviCRM() {
PRIMARY KEY (email, hash),
KEY (contact_id)
)
ENGINE=InnoDB ;");
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;");
return $dao;
}
/**
Expand Down