<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="mysql" version="1">
  <changeset version="2">
    <alter-table name="object">
      <add-column name="y" type="INT" 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" options="ENGINE=InnoDB" kind="object">
      <column name="id" type="INT" null="false"/>
      <column name="x" type="INT" null="false"/>
      <primary-key auto="true">
        <column name="id"/>
      </primary-key>
    </table>
  </model>
</changelog>