dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19829
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8811: Removing obsolete columns from mapview
------------------------------------------------------------
revno: 8811
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-11-01 08:57:43 +0300
message:
Removing obsolete columns from mapview
modified:
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/resources/org/hisp/dhis/mapping/hibernate/MapView.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/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2012-11-01 05:33:34 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2012-11-01 05:57:43 +0000
@@ -141,6 +141,8 @@
executeSql( "ALTER TABLE mapview DROP COLUMN mapsource" );
executeSql( "ALTER TABLE mapview DROP COLUMN mapsourcetype" );
executeSql( "ALTER TABLE mapview DROP COLUMN mapdatetype" );
+ executeSql( "ALTER TABLE mapview DROP COLUMN featuretype" );
+ executeSql( "ALTER TABLE mapview DROP COLUMN bounds" );
executeSql( "ALTER TABLE mapview RENAME COLUMN mapvaluetype TO valuetype" );
executeSql( "ALTER TABLE mapview RENAME COLUMN maplegendtype TO legendtype" );
executeSql( "ALTER TABLE mapview RENAME COLUMN maplegendsetid TO legendsetid" );
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml 2012-10-25 14:58:43 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml 2012-11-01 05:57:43 +0000
@@ -11,7 +11,10 @@
<id name="id" column="mapviewid">
<generator class="native" />
</id>
- &identifiableProperties;
+
+ <property name="uid" column="uid" length="11" />
+
+ <property name="lastUpdated" type="timestamp"/>
<property name="layer" />