Skip to content

Commit

Permalink
Merge pull request #10444 from seamuslee001/CRM-20662
Browse files Browse the repository at this point in the history
CRM-20662 Ensure that the system only tries populating the domain_id …
  • Loading branch information
eileenmcnaughton authored May 30, 2017
2 parents f16a3d2 + 9cec419 commit 7cc90d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Upgrade/Incremental/php/FourSeven.php
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ public static function deprecateStateProvinces($countryID, $provinces) {
*/
public static function populateSMSProviderDomainId() {
$count = CRM_Core_DAO::singleValueQuery("SELECT count(id) FROM civicrm_domain");
if ($count = 1) {
if ($count == 1) {
CRM_Core_DAO::executeQuery("UPDATE civicrm_sms_provider SET domain_id = (SELECT id FROM civicrm_domain)");
}
if (!parent::checkFKExists('civicrm_sms_provider', 'FK_civicrm_sms_provider_domain_id')) {
Expand Down

0 comments on commit 7cc90d7

Please sign in to comment.