dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #06608
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1830: Renamed section-dataelements link table to sectiondataelements - the old table was modified but t...
------------------------------------------------------------
revno: 1830
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Sat 2010-07-10 12:42:16 +0200
message:
Renamed section-dataelements link table to sectiondataelements - the old table was modified but the primary key including an old column was still present, easier to rename than to fix.
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/dataset/hibernate/Section.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 2010-07-09 12:16:11 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2010-07-10 10:42:16 +0000
@@ -147,6 +147,7 @@
// drop unused label column from section table
executeSql( "ALTER TABLE section DROP COLUMN label" );
+ executeSql( "DROP TABLE sectionmembers" );
log.info( "Tables updated" );
}
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/Section.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/Section.hbm.xml 2010-06-27 15:47:33 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/Section.hbm.xml 2010-07-10 10:42:16 +0000
@@ -15,7 +15,7 @@
<many-to-one name="dataSet" class="org.hisp.dhis.dataset.DataSet" column="datasetid"/>
- <list name="dataElements" table="sectionmembers">
+ <list name="dataElements" table="sectiondataelements">
<key column="sectionid"/>
<list-index column="sort_order" base="1"/>
<many-to-many class="org.hisp.dhis.dataelement.DataElement"