← Back to team overview

dhis2-devs team mailing list archive

Re: [Branch ~dhis2-devs-core/dhis2/trunk] Rev 18945: Changed attribute value to text type

 

Hipp hipp....

Regards
Calle

On 20 April 2015 at 11:12, <noreply@xxxxxxxxxxxxx> wrote:

> ------------------------------------------------------------
> revno: 18945
> committer: Lars Helge Overland <larshelge@xxxxxxxxx>
> branch nick: dhis2
> timestamp: Mon 2015-04-20 11:11:27 +0200
> message:
>   Changed attribute value to text type
> modified:
>
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java
>
> dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/attribute/hibernate/AttributeValue.hbm.xml
>
>
> --
> lp:dhis2
> https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
>
> Your team DHIS 2 developers is subscribed to branch lp:dhis2.
> To unsubscribe from this branch go to
> https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
>
> === modified file
> 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java'
> ---
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java
>       2015-04-10 08:32:41 +0000
> +++
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java
>       2015-04-20 09:11:27 +0000
> @@ -804,6 +804,7 @@
>          // AttributeValue
>          executeSql( "UPDATE attributevalue SET created=now() WHERE
> created IS NULL" );
>          executeSql( "UPDATE attributevalue SET lastupdated=now() WHERE
> lastupdated IS NULL" );
> +        executeSql( "ALTER TABLE attributevalue ALTER value TYPE text" );
>
>          executeSql( "update dashboarditem set shape = 'normal' where
> shape is null" );
>
>
> === modified file
> 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/attribute/hibernate/AttributeValue.hbm.xml'
> ---
> dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/attribute/hibernate/AttributeValue.hbm.xml
> 2015-01-02 14:06:24 +0000
> +++
> dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/attribute/hibernate/AttributeValue.hbm.xml
> 2015-04-20 09:11:27 +0000
> @@ -16,7 +16,7 @@
>
>      <property name="lastUpdated" />
>
> -    <property name="value" />
> +    <property name="value" type="text" />
>
>      <many-to-one name="attribute"
> class="org.hisp.dhis.attribute.Attribute" column="attributeid"
>        foreign-key="fk_attributevalue_attributeid" not-null="true" />
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19274

Email: calle.hedberg@xxxxxxxxx

Skype: calle_hedberg

*******************************************

References