dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29398
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14845: Startup routine for sqlview primary key
------------------------------------------------------------
revno: 14845
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-04-14 14:13:52 +0200
message:
Startup routine for sqlview primary key
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 2014-04-13 20:08:51 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2014-04-14 12:13:52 +0000
@@ -663,7 +663,8 @@
executeSql( "UPDATE dataset SET dataelementdecoration=false WHERE dataelementdecoration is null" );
executeSql( "alter table validationrulegroup rename column validationgroupid to validationrulegroupid" );
- executeSql( "alter table sqlview rename column viewid to sqlviewid" );
+ executeSql( "update sqlview set sqlviewid=viweid" );
+ executeSql( "alter table sqlview drop column viewid" );
executeSql( "UPDATE dashboard SET publicaccess='--------' WHERE publicaccess is null" );