summaryrefslogtreecommitdiff
path: root/odb-tests/common/changelog/add-index-sqlite-diff.xml
blob: c1f7fdcf9fafa5e5783480a4468785d51d157f49 (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" database="sqlite" 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" kind="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>