summaryrefslogtreecommitdiff
path: root/odb-tests/common/changelog/add-index-oracle-patch.xml
blob: a9bafea49569eaa1c6791adc1b34742dffdbf2f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="oracle" version="1">
  <changeset version="3"/>

  <model version="2">
    <table name="object" kind="object">
      <column name="id" type="NUMBER(10)" null="false"/>
      <column name="x" type="NUMBER(10)" null="false"/>
      <column name="y" type="NUMBER(10)" null="false"/>
      <primary-key auto="true" sequence="object_seq">
        <column name="id"/>
      </primary-key>
      <index name="xy_i" type="UNIQUE">
        <column name="x"/>
        <column name="y" options="DESC"/>
      </index>
    </table>
  </model>
</changelog>