Add uniquenames for mailing_name, mailing_job_status
authoreileen <emcnaughton@wikimedia.org>
Tue, 29 Oct 2019 19:28:14 +0000 (08:28 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 29 Oct 2019 19:30:51 +0000 (08:30 +1300)
commit08d08c035157a7b78a3af0569128c2534b2c9f64
tree59dd201cdbc239007f87c8b6a21d55e6c345b7bd
parent5756d96f29eb5e9cc063517d8ed58b9cedcb7518
Add uniquenames for mailing_name, mailing_job_status

This is in support of https://github.com/civicrm/civicrm-core/pull/15369

Where the names in the search do not match the 'real names' we have 2 techniques

1) where adding a unique name to the schema gives a match we do that - here that is
the case for mailing_name
2) otherwise we ensure the schema has a unique name if appropriate &
rename the field in the upgrade scriptt

In this case when we look at CRM_Mailing_BAO_Query we don't see mailing_name
as present (only mailing_id which should be an entity reference field). However it
is used in the confusingly-not-related Mailing search so lets rename this
one at the same time.
CRM/Mailing/DAO/Mailing.php
CRM/Mailing/DAO/MailingJob.php
xml/schema/Mailing/Mailing.xml
xml/schema/Mailing/MailingJob.xml