← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5427: Minor fix to table alteror

 

------------------------------------------------------------
revno: 5427
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-12-15 11:02:30 +0100
message:
  Minor fix to table alteror
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	2011-12-14 16:53:56 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java	2011-12-15 10:02:30 +0000
@@ -345,30 +345,37 @@
         executeSql( "update dataelement set zeroissignificant = false where zeroissignificant is null" );
         executeSql( "update organisationunit set haspatients = false where haspatients is null" );
 
+        executeSql( "update reporttable set reportingmonth = false where reportingmonth is null" );
+        executeSql( "update reporttable set reportingbimonth = false where reportingbimonth is null" );
+        executeSql( "update reporttable set reportingquarter = false where reportingquarter is null" );
         executeSql( "update reporttable set monthsthisyear = false where monthsthisyear is null" );
         executeSql( "update reporttable set quartersthisyear = false where quartersthisyear is null" );
         executeSql( "update reporttable set thisyear = false where thisyear is null" );
         executeSql( "update reporttable set monthslastyear = false where monthslastyear is null" );
-        executeSql( "update reporttable set quartersthisyear = false where quartersthisyear is null" );
-        executeSql( "update reporttable set thisyear = false where thisyear is null" );
-        executeSql( "update reporttable set monthslastyear = false where monthslastyear is null" );
         executeSql( "update reporttable set quarterslastyear = false where quarterslastyear is null" );
-        executeSql( "update reporttable set monthsthisyear = false where monthsthisyear is null" );
         executeSql( "update reporttable set lastyear = false where lastyear is null" );
         executeSql( "update reporttable set last5years = false where last5years is null" );
         executeSql( "update reporttable set last4quarters = false where last4quarters is null" );
         executeSql( "update reporttable set last12months = false where last12months is null" );
+        executeSql( "update reporttable set last6bimonths = false where last6bimonths is null" );
+        executeSql( "update reporttable set last4quarters = false where last4quarters is null" );
+        executeSql( "update reporttable set last2sixmonths = false where last2sixmonths is null" );
 
+        executeSql( "update chart set reportingmonth = false where reportingmonth is null" );
+        executeSql( "update chart set reportingbimonth = false where reportingbimonth is null" );
+        executeSql( "update chart set reportingquarter = false where reportingquarter is null" );
         executeSql( "update chart set monthsthisyear = false where monthsthisyear is null" );
         executeSql( "update chart set quartersthisyear = false where quartersthisyear is null" );
         executeSql( "update chart set thisyear = false where thisyear is null" );
         executeSql( "update chart set monthslastyear = false where monthslastyear is null" );
-        executeSql( "update chart set quartersthisyear = false where quartersthisyear is null" );
-        executeSql( "update chart set thisyear = false where thisyear is null" );
-        executeSql( "update chart set monthslastyear = false where monthslastyear is null" );
         executeSql( "update chart set quarterslastyear = false where quarterslastyear is null" );
-        executeSql( "update chart set monthsthisyear = false where monthsthisyear is null" );
         executeSql( "update chart set lastyear = false where lastyear is null" );
+        executeSql( "update chart set last5years = false where last5years is null" );
+        executeSql( "update chart set last4quarters = false where last4quarters is null" );
+        executeSql( "update chart set last12months = false where last12months is null" );
+        executeSql( "update chart set last6bimonths = false where last6bimonths is null" );
+        executeSql( "update chart set last4quarters = false where last4quarters is null" );
+        executeSql( "update chart set last2sixmonths = false where last2sixmonths is null" );
 
         log.info( "Tables updated" );
     }