aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/add-index-pgsql-diff.xml
diff options
context:
space:
mode:
Diffstat (limited to 'common/changelog/add-index-pgsql-diff.xml')
-rw-r--r--common/changelog/add-index-pgsql-diff.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/common/changelog/add-index-pgsql-diff.xml b/common/changelog/add-index-pgsql-diff.xml
new file mode 100644
index 0000000..969abd8
--- /dev/null
+++ b/common/changelog/add-index-pgsql-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="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>