[#TRUNK-4111] Exclude longitude, latitude, start date and end date fields from address template

https://issues.openmrs.org/browse/TRUNK-4111
@kjoseph you could use a liquibase custom precondition which would load the
value from the database and check for these fields. We have already have
examples of custom preconditions in the core code base.

On Mon, Oct 6, 2014 at 2:59 PM, k-joseph <notifications@github.com> wrote:

> In api/src/main/resources/liquibase-update-to-latest.xml:
>
> > @@ -8439,5 +8439,60 @@
> >          <modifyDataType tableName="drug_order" columnName="dosing_type" newDataType="varchar(255)" />
> >      </changeSet>
> >
> > +	<changeSet id="20140822-TRUNK-4111" author="k-joseph">
> > +    	<preConditions onFail="MARK_RAN">
> > +    		<columnExists columnName="property_value" tableName="global_property" />
> > +    	</preConditions>
> > +    	<comment>Updating Address Template to remove longitude, latitude fields completely</comment>
> > +        <update tableName="global_property">
>
> Actually according to @dkayiwa <https://github.com/dkayiwa> this will
> overwrite the user's previous default values! Can we do it at that expense?
> And if not @wluyima <https://github.com/wluyima>! What do you suggest is
> the better approach to achieve this @dkayiwa <https://github.com/dkayiwa>?
>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/openmrs/openmrs-core/pull/1023/files#r18452576>.
>



-- 
If we keep uppermost in our minds the unkind and unjust acts of others, we
shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.