src-db/database/model/tables/M_ATTRIBUTESETINSTANCE.xml
author Stefan Hühner <stefan.huehner@openbravo.com>
Thu, 07 Oct 2010 16:53:30 +0200
changeset 8505 a2bb7e6fb443
parent 8504 802eae4a434d
child 33354 f8b3c7b29713
permissions -rw-r--r--
Issue 14514: fix wrong changeset 802eae4a434d
- That changeset by accident removed all existing check constraint
in addition to the wanted removal of a few lines in sourcedata of
AD_TEXTINTERFACES.
- This commit reverts the unwatend parts, readding all the missing
constrainst and only keep the removal in sourcedata/AD_TEXTINTERFACES.xml
<?xml version="1.0"?>
  <database name="TABLE M_ATTRIBUTESETINSTANCE">
    <table name="M_ATTRIBUTESETINSTANCE" primaryKey="M_ATTRIBUTESETINSTANCE_KEY">
      <column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[Y]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="M_ATTRIBUTESET_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="SERNO" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="LOT" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="GUARANTEEDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="M_LOT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISLOCKED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[N]]></default>
        <onCreateDefault/>
      </column>
      <column name="LOCK_DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <foreign-key foreignTable="AD_CLIENT" name="M_ATTRIBUTESETINSTANCE_AD_CLIE">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="M_ATTRIBUTESETINSTANCE_AD_ORG">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="M_ATTRIBUTESET" name="M_ATTRIBUTESETINSTANCE_M_ATTRI">
        <reference local="M_ATTRIBUTESET_ID" foreign="M_ATTRIBUTESET_ID"/>
      </foreign-key>
      <foreign-key foreignTable="M_LOT" name="M_ATTRIBUTESETINSTANCE_M_LOT">
        <reference local="M_LOT_ID" foreign="M_LOT_ID"/>
      </foreign-key>
      <check name="M_ATTRIBUTESETINSTANCE_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
      <check name="M_ATTRIBUTESETINSTANCE_ISL_CHK"><![CDATA[ISLOCKED IN ('Y', 'N')]]></check>
    </table>
  </database>