src-db/database/model/tables/AD_MONTH_TRL.xml
author Stefan Hühner <stefan.huehner@openbravo.com>
Thu, 07 Oct 2010 16:53:30 +0200
changeset 8505 a2bb7e6fb443
parent 8504 802eae4a434d
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
ainhoa@2108
     1
<?xml version="1.0"?>
ainhoa@2108
     2
  <database name="TABLE AD_MONTH_TRL">
ainhoa@2108
     3
    <table name="AD_MONTH_TRL" primaryKey="AD_MONTH_TRL_KEY">
ainhoa@2108
     4
      <column name="AD_MONTH_TRL_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
     5
        <default/>
ainhoa@2108
     6
        <onCreateDefault><![CDATA[get_uuid()]]></onCreateDefault>
ainhoa@2108
     7
      </column>
ainhoa@2108
     8
      <column name="AD_MONTH_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
     9
        <default/>
ainhoa@2108
    10
        <onCreateDefault/>
ainhoa@2108
    11
      </column>
ainhoa@2108
    12
      <column name="AD_LANGUAGE" primaryKey="false" required="true" type="VARCHAR" size="6" autoIncrement="false">
ainhoa@2108
    13
        <default/>
ainhoa@2108
    14
        <onCreateDefault/>
ainhoa@2108
    15
      </column>
ainhoa@2108
    16
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    17
        <default/>
ainhoa@2108
    18
        <onCreateDefault/>
ainhoa@2108
    19
      </column>
ainhoa@2108
    20
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    21
        <default/>
ainhoa@2108
    22
        <onCreateDefault/>
ainhoa@2108
    23
      </column>
ainhoa@2108
    24
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
ainhoa@2108
    25
        <default><![CDATA[Y]]></default>
ainhoa@2108
    26
        <onCreateDefault/>
ainhoa@2108
    27
      </column>
ainhoa@2108
    28
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
ainhoa@2108
    29
        <default><![CDATA[SYSDATE]]></default>
ainhoa@2108
    30
        <onCreateDefault/>
ainhoa@2108
    31
      </column>
ainhoa@2108
    32
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    33
        <default/>
ainhoa@2108
    34
        <onCreateDefault/>
ainhoa@2108
    35
      </column>
ainhoa@2108
    36
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
ainhoa@2108
    37
        <default><![CDATA[SYSDATE]]></default>
ainhoa@2108
    38
        <onCreateDefault/>
ainhoa@2108
    39
      </column>
ainhoa@2108
    40
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    41
        <default/>
ainhoa@2108
    42
        <onCreateDefault/>
ainhoa@2108
    43
      </column>
ainhoa@2108
    44
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
ainhoa@2108
    45
        <default/>
ainhoa@2108
    46
        <onCreateDefault/>
ainhoa@2108
    47
      </column>
ainhoa@2108
    48
      <column name="ISTRANSLATED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
ainhoa@2108
    49
        <default><![CDATA[N]]></default>
ainhoa@2108
    50
        <onCreateDefault/>
ainhoa@2108
    51
      </column>
asier@5551
    52
      <foreign-key foreignTable="AD_CLIENT" name="AD_MONTH_TRL_AD_CLIENT">
ainhoa@2108
    53
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
ainhoa@2108
    54
      </foreign-key>
asier@5551
    55
      <foreign-key foreignTable="AD_LANGUAGE" name="AD_MONTH_TRL_AD_LANGUAGE">
ainhoa@2108
    56
        <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
ainhoa@2108
    57
      </foreign-key>
asier@5551
    58
      <foreign-key foreignTable="AD_MONTH" name="AD_MONTH_TRL_AD_MONTH" onDelete="cascade">
ainhoa@2108
    59
        <reference local="AD_MONTH_ID" foreign="AD_MONTH_ID"/>
ainhoa@2108
    60
      </foreign-key>
asier@5551
    61
      <foreign-key foreignTable="AD_ORG" name="AD_MONTH_TRL_AD_ORG">
ainhoa@2108
    62
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
ainhoa@2108
    63
      </foreign-key>
asier@5551
    64
      <unique name="AD_MONTH_TRL_MONTH_LANGUAGE_UN">
ainhoa@2108
    65
        <unique-column name="AD_MONTH_ID"/>
ainhoa@2108
    66
        <unique-column name="AD_LANGUAGE"/>
ainhoa@2108
    67
      </unique>
stefan@8505
    68
      <check name="AD_MONTH_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
stefan@8505
    69
      <check name="AD_MONTH_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
ainhoa@2108
    70
    </table>
ainhoa@2108
    71
  </database>