dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19933
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8906: Upgraded MapViewUpgrader
------------------------------------------------------------
revno: 8906
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-11-06 17:08:38 +0300
message:
Upgraded MapViewUpgrader
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/MapViewUpgrader.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/MapViewUpgrader.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/MapViewUpgrader.java 2012-11-05 12:04:14 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/MapViewUpgrader.java 2012-11-06 14:08:38 +0000
@@ -47,7 +47,8 @@
executeSql( "alter table mapview drop column code" );
executeSql( "alter table mapview drop column periodtypeid" );
- executeSql( "update mapview set layer = 'thematic1' where layer is null" );
+ executeSql( "update mapview set layer='thematic1' where layer is null" );
+ executeSql( "update mapview set valuetype='dataElement' where valuetype='dataelement'" );
executeSql( "alter table mapview alter column opacity type double precision" );
String sql = "select mapviewid, name, userid, longitude, latitude, zoom from mapview where mapviewid not in (" +