← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2296: getting rid of modified column again - just because you're going forward doesn't mean that I'm go...

 

------------------------------------------------------------
revno: 2296
committer: Bob Jolliffe bobjolliffe@xxxxxxxxx
branch nick: trunk
timestamp: Mon 2010-12-06 10:23:06 +0000
message:
  getting rid of modified column again - just because you're going forward doesn't mean that I'm going backwards :-).  
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	2010-11-29 22:02:46 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java	2010-12-06 10:23:06 +0000
@@ -199,12 +199,12 @@
 
         executeSql( "UPDATE dataelement set numbertype='number' where numbertype is null and valuetype='int'" );
 
-        // prepare aggregateXXXValue tables for offline diffs
-
-        executeSql( "ALTER TABLE aggregateddatavalue ADD COLUMN modified timestamp with time zone default now();");
-
-        executeSql( "ALTER TABLE aggregatedindicatorvalue ADD COLUMN modified timestamp with time zone default now();");
-
+       // revert prepare aggregateXXXValue tables for offline diffs
+
+        executeSql( "ALTER TABLE aggregateddatavalue DROP COLUMN modified");
+
+        executeSql( "ALTER TABLE aggregatedindicatorvalue DROP COLUMN modified ");
+        
         log.info( "Tables updated" );
     }