← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21271: Made indicator.numerator and .denominator not null in db schema

 

------------------------------------------------------------
revno: 21271
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-12-02 18:41:57 +0100
message:
  Made indicator.numerator and .denominator not null in db schema
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.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/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml	2015-11-23 06:52:49 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml	2015-12-02 17:41:57 +0000
@@ -28,11 +28,11 @@
     <many-to-one name="indicatorType" class="org.hisp.dhis.indicator.IndicatorType" column="indicatortypeid"
       foreign-key="fk_indicator_indicatortypeid" not-null="true" />
 
-    <property name="numerator" column="numerator" type="text" />
+    <property name="numerator" column="numerator" type="text" not-null="true" />
 
     <property name="numeratorDescription" column="numeratordescription" type="text" />
 
-    <property name="denominator" column="denominator" type="text" />
+    <property name="denominator" column="denominator" type="text" not-null="true" />
 
     <property name="denominatorDescription" column="denominatordescription" type="text" />