dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19544
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8563: Exception thrown when save tabular report.
------------------------------------------------------------
revno: 8563
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-10-18 10:29:28 +0700
message:
Exception thrown when save tabular report.
modified:
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/resources/org/hisp/dhis/patientreport/hibernate/PatientTabularReport.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-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-10-11 02:33:30 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java 2012-10-18 03:29:28 +0000
@@ -141,9 +141,7 @@
executeSql( "CREATE INDEX index_programinstance ON programinstance( programinstanceid )" );
executeSql( "ALTER TABLE program DROP COLUMN maxDaysAllowedInputData");
-
- executeSql( "ALTER TABLE programstage_dataelements DROP CONSTRAINT \"fkaf0e5fc634ee4761\" ");
-
+
executeSql( "ALTER TABLE period modify periodid int AUTO_INCREMENT");
executeSql( "CREATE SEQUENCE period_periodid_seq");
executeSql( "ALTER TABLE period ALTER COLUMN periodid SET DEFAULT NEXTVAL('period_periodid_seq')");
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/resources/org/hisp/dhis/patientreport/hibernate/PatientTabularReport.hbm.xml'
--- dhis-2/dhis-services/dhis-service-patient/src/main/resources/org/hisp/dhis/patientreport/hibernate/PatientTabularReport.hbm.xml 2012-10-02 05:09:19 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/resources/org/hisp/dhis/patientreport/hibernate/PatientTabularReport.hbm.xml 2012-10-18 03:29:28 +0000
@@ -41,7 +41,7 @@
</list>
<list name="programStageDataElements" table="patienttabularreport_programstagedataelements">
- <key column="programstagesectionid" />
+ <key column="patienttabularreportid" />
<list-index column="tabular_sort_order" base="1" />
<one-to-many class="org.hisp.dhis.program.ProgramStageDataElement"/>
</list>