← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22048: Program stage, repeatable, upgrade script

 

------------------------------------------------------------
revno: 22048
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2016-02-25 23:26:20 -0500
message:
  Program stage, repeatable, upgrade script
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java


--
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	2016-02-25 22:07:30 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java	2016-02-26 04:26:20 +0000
@@ -854,10 +854,11 @@
         executeSql( "alter table programinstance drop column dateofincident" );
 
         executeSql( "update programstage set excecutiondatelabel = reportdatedescription where excecutiondatelabel is null" );
-        executeSql( "alter table programstage drop column reportdatedescription" );
         executeSql( "update programstage set reportdatetouse = 'indicentDate' where reportdatetouse='dateOfIncident'" );
+        executeSql( "update programstage set repeatable = irregular where repeatable is null" );
         executeSql( "update programstage set repeatable = false where repeatable is null" );
-
+        executeSql( "alter table programstage drop column reportdatedescription" );
+        executeSql( "alter table programstage drop column irregular" );        
 
         executeSql( "alter table programindicator drop column missingvaluereplacement" );