aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/add-index-pgsql-diff.xml
blob: 969abd8d20bef33c02e156211fc1de167cc4467b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" version="1">
  <changeset version="2">
    <alter-table name="object">
      <add-column name="y" type="INTEGER" null="false"/>
      <add-index name="xy_i" type="UNIQUE">
        <column name="x"/>
        <column name="y" options="DESC"/>
      </add-index>
    </alter-table>
  </changeset>

  <model version="1">
    <table name="object">
      <column name="id" type="INTEGER" null="false"/>
      <column name="x" type="INTEGER" null="false"/>
      <primary-key auto="true">
        <column name="id"/>
      </primary-key>
    </table>
  </model>
</changelog>