dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39167
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19861: Set storedby column to 255 chars for trackedentitydatavalue and datavalue
------------------------------------------------------------
revno: 19861
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-08-26 13:37:24 +0200
message:
Set storedby column to 255 chars for trackedentitydatavalue and datavalue
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/datavalue/hibernate/DataValue.hbm.xml
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValue.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/trackedentity/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2015-08-07 15:23:36 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2015-08-26 11:37:24 +0000
@@ -314,6 +314,9 @@
executeSql( "update program p set dataentryformid = (select dataentryformid from trackedentityform tf where tf.programid=p.programid limit 1)" );
executeSql( "drop table trackedentityform" );
+
+ executeSql( "alter table trackedentitydatavalue alter column storedby TYPE character varying(255)" );
+ executeSql( "alter table datavalue alter column storedby TYPE character varying(255)" );
updateProgramStageList();
updateProgramAttributeList();
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/datavalue/hibernate/DataValue.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/datavalue/hibernate/DataValue.hbm.xml 2014-09-19 17:13:55 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/datavalue/hibernate/DataValue.hbm.xml 2015-08-26 11:37:24 +0000
@@ -16,7 +16,7 @@
<property name="value" length="50000" />
- <property name="storedBy" column="storedby" length="100" />
+ <property name="storedBy" column="storedby" />
<property name="created" column="created" type="timestamp" />
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValue.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValue.hbm.xml 2015-06-23 15:59:19 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValue.hbm.xml 2015-08-26 11:37:24 +0000
@@ -19,7 +19,7 @@
<property name="providedElsewhere" />
- <property name="storedBy" column="storedby" length="31" />
+ <property name="storedBy" column="storedby" />
</class>
</hibernate-mapping>