database/model/tables/MA_COSTCENTER_VERSION.xml
changeset 94 4e7ba7b8a4ad
parent 0 0247c26f10c6
child 238 006d2d0fdea6
--- a/database/model/tables/MA_COSTCENTER_VERSION.xml	Tue Nov 20 13:31:01 2007 +0000
+++ b/database/model/tables/MA_COSTCENTER_VERSION.xml	Tue Nov 20 16:27:14 2007 +0000
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<database name="TABLE MA_COSTCENTER_VERSION">
+  <database name="TABLE MA_COSTCENTER_VERSION">
     <table name="MA_COSTCENTER_VERSION" primaryKey="MA_COSTCENTER_VERSION_KEY">
       <column name="MA_COSTCENTER_VERSION_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
@@ -14,7 +14,6 @@
       <column name="MA_COSTCENTER_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="COSTUOM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
       <column name="VALIDFROM" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
-      <check name="MA_COSTCENTER_VERSION_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MACOSTCENTER_VERSION">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
@@ -24,5 +23,6 @@
       <foreign-key foreignTable="MA_COSTCENTER" name="COSTCENTER_COSTCENTERVERSION">
         <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
       </foreign-key>
+      <check name="MA_COSTCENTER_V_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
     </table>
-</database>
\ No newline at end of file
+  </database>