diff options
Diffstat (limited to 'common/changelog/add-index-mysql-diff.xml')
-rw-r--r-- | common/changelog/add-index-mysql-diff.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/changelog/add-index-mysql-diff.xml b/common/changelog/add-index-mysql-diff.xml new file mode 100644 index 0000000..33634f8 --- /dev/null +++ b/common/changelog/add-index-mysql-diff.xml @@ -0,0 +1,21 @@ +<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" 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"> + <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> |