dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18967
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8088: Added index on programstageinstance table
------------------------------------------------------------
revno: 8088
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-09-14 14:53:55 +0200
message:
Added index on programstageinstance table
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/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-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java 2012-09-07 09:18:04 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java 2012-09-14 12:53:55 +0000
@@ -120,7 +120,7 @@
updateProgramStageTabularReportTable();
moveStoredByFormStageInstanceToDataValue();
- executeSql( "ALTER TABLE patientattribute DROP COLUMN inheritable" );
+ executeSql( "ALTER TABLE patiesntattribute DROP COLUMN inheritable" );
executeSql( "ALTER TABLE programstageinstance DROP COLUMN stageInProgram" );
updateRelationshipIdentifiers();
@@ -128,6 +128,7 @@
executeSql( "UPDATE programstage SET reportDateDescription='Report date' WHERE reportDateDescription is null" );
+ executeSql( "CREATE INDEX programstageinstance_executiondate ON programstageinstance (executiondate)" );
}
// -------------------------------------------------------------------------