dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28591
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14287: Add statement to remove trackedentityattributeoption table in database.
------------------------------------------------------------
revno: 14287
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-03-19 14:31:33 +0700
message:
Add statement to remove trackedentityattributeoption table in database.
modified:
dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/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-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2014-03-19 07:31:33 +0000
@@ -278,6 +278,8 @@
executeSql( "ALTER TABLE program_attributes RENAME COLUMN programattributeid TO programtrackedentityattributeid" );
createPersonTrackedEntity();
+ executeSql( "ALTER TABLE trackedentityattributevalue DROP COLUMN trackedentityattributeoptionid" );
+ executeSql( "DROP TABLE trackedentityattributeoption" );
}
// -------------------------------------------------------------------------