dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36894
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18870: Removed program stage section name uniqueness constraint
------------------------------------------------------------
revno: 18870
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-04-10 08:12:03 +0200
message:
Removed program stage section name uniqueness constraint
modified:
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/resources/org/hisp/dhis/program/hibernate/ProgramStageSection.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-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 2015-04-03 08:01:44 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2015-04-10 06:12:03 +0000
@@ -304,6 +304,7 @@
executeSql( "ALTER TABLE period ALTER COLUMN periodid DROP DEFAULT" );
executeSql( "DROP SEQUENCE period_periodid_seq" );
+ executeSql( "ALTER TABLE programstagesection DROP CONSTRAINT programstagesection_name_key" );
executeSql( "update eventreport set collapsedatadimensions = false where collapsedatadimensions is null" );
executeSql( "update eventchart set collapsedatadimensions = false where collapsedatadimensions is null" );
=== modified file 'dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/program/hibernate/ProgramStageSection.hbm.xml'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/program/hibernate/ProgramStageSection.hbm.xml 2015-04-09 18:34:22 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/program/hibernate/ProgramStageSection.hbm.xml 2015-04-10 06:12:03 +0000
@@ -13,7 +13,7 @@
</id>
&identifiableProperties;
- <property name="name" column="name" not-null="true" unique="true" length="230" />
+ <property name="name" column="name" not-null="true" unique="false" length="230" />
<many-to-one name="programStage" class="org.hisp.dhis.program.ProgramStage"
column="programstageid" foreign-key="fk_program_programstageid" />