src-db/database/model/tables/C_PERIODCONTROL_LOG.xml
author Stefan Hühner <stefan.huehner@openbravo.com>
Thu, 07 Oct 2010 16:53:30 +0200
changeset 8505 a2bb7e6fb443
parent 8504 802eae4a434d
child 19971 c996d8a16780
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
asier@1929
     1
<?xml version="1.0"?>
asier@1929
     2
  <database name="TABLE C_PERIODCONTROL_LOG">
asier@5548
     3
    <table name="C_PERIODCONTROL_LOG" primaryKey="C_PERIODCONTROL_LOG_KEY">
asier@1929
     4
      <column name="C_PERIODCONTROL_LOG_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
     5
        <default/>
asier@1929
     6
        <onCreateDefault/>
asier@1929
     7
      </column>
asier@1929
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
     9
        <default/>
asier@1929
    10
        <onCreateDefault/>
asier@1929
    11
      </column>
victor@3099
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
    13
        <default/>
asier@1929
    14
        <onCreateDefault/>
asier@1929
    15
      </column>
asier@1929
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
asier@1929
    17
        <default><![CDATA[Y]]></default>
asier@1929
    18
        <onCreateDefault/>
asier@1929
    19
      </column>
asier@1929
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
asier@1929
    21
        <default><![CDATA[SYSDATE]]></default>
asier@1929
    22
        <onCreateDefault/>
asier@1929
    23
      </column>
asier@1929
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
    25
        <default/>
asier@1929
    26
        <onCreateDefault/>
asier@1929
    27
      </column>
asier@1929
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
asier@1929
    29
        <default><![CDATA[SYSDATE]]></default>
asier@1929
    30
        <onCreateDefault/>
asier@1929
    31
      </column>
asier@1929
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
    33
        <default/>
asier@1929
    34
        <onCreateDefault/>
asier@1929
    35
      </column>
asier@1929
    36
      <column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false">
asier@1929
    37
        <default/>
asier@1929
    38
        <onCreateDefault/>
asier@1929
    39
      </column>
asier@1929
    40
      <column name="PROCESSING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
asier@1929
    41
        <default><![CDATA[N]]></default>
asier@1929
    42
        <onCreateDefault/>
asier@1929
    43
      </column>
asier@1929
    44
      <column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
asier@1929
    45
        <default><![CDATA[N]]></default>
asier@1929
    46
        <onCreateDefault/>
asier@1929
    47
      </column>
asier@1929
    48
      <column name="C_CALENDAR_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
    49
        <default/>
asier@1929
    50
        <onCreateDefault/>
asier@1929
    51
      </column>
asier@1929
    52
      <column name="ISRECURSIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
asier@1929
    53
        <default/>
asier@1929
    54
        <onCreateDefault/>
asier@1929
    55
      </column>
asier@1929
    56
      <column name="C_YEAR_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
    57
        <default/>
asier@1929
    58
        <onCreateDefault/>
asier@1929
    59
      </column>
asier@1929
    60
      <column name="PERIODNO" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1929
    61
        <default/>
asier@1929
    62
        <onCreateDefault/>
asier@1929
    63
      </column>
asier@2586
    64
      <column name="DOCBASETYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
asier@1929
    65
        <default/>
asier@1929
    66
        <onCreateDefault/>
asier@1929
    67
      </column>
asier@2586
    68
      <column name="PERIODACTION" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
asier@1929
    69
        <default/>
asier@1929
    70
        <onCreateDefault/>
asier@1929
    71
      </column>
asier@5551
    72
      <foreign-key foreignTable="AD_CLIENT" name="C_PERIODCONTROL_LOG_AD_CLIENT">
asier@1929
    73
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
asier@1929
    74
      </foreign-key>
asier@5551
    75
      <foreign-key foreignTable="AD_ORG" name="C_PERIODCONTROL_LOG_AD_ORG">
asier@1929
    76
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
asier@1929
    77
      </foreign-key>
asier@5551
    78
      <foreign-key foreignTable="C_CALENDAR" name="C_PERIODCONTROL_LOG_C_CALENDAR">
asier@1929
    79
        <reference local="C_CALENDAR_ID" foreign="C_CALENDAR_ID"/>
asier@1929
    80
      </foreign-key>
asier@5551
    81
      <foreign-key foreignTable="C_YEAR" name="C_PERIODCONTROL_LOG_C_YEAR">
asier@1929
    82
        <reference local="C_YEAR_ID" foreign="C_YEAR_ID"/>
asier@1929
    83
      </foreign-key>
asier@5551
    84
      <foreign-key foreignTable="C_PERIOD" name="C_PERIODCONTROL_LOG_PERIODNO">
asier@1929
    85
        <reference local="PERIODNO" foreign="C_PERIOD_ID"/>
asier@1929
    86
      </foreign-key>
stefan@8505
    87
      <check name="C_PERIODCTRLLOG_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
stefan@8505
    88
      <check name="C_PERIODCTRLLOG_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
stefan@8505
    89
      <check name="C_PERIODCTRLLOG_PROCESSING_CHK"><![CDATA[PROCESSING IN ('Y', 'N')]]></check>
stefan@8505
    90
      <check name="C_PERIODCTRLLOG_RECURSIVE_CHK"><![CDATA[ISRECURSIVE IN ('Y', 'N')]]></check>
asier@1929
    91
    </table>
asier@1929
    92
  </database>