aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/add-index.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/changelog/add-index.hxx')
-rw-r--r--common/changelog/add-index.hxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/changelog/add-index.hxx b/common/changelog/add-index.hxx
new file mode 100644
index 0000000..92437ab
--- /dev/null
+++ b/common/changelog/add-index.hxx
@@ -0,0 +1,25 @@
+// file : common/changelog/add-index.hxx
+// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ADD_INDEX_HXX
+#define ADD_INDEX_HXX
+
+#pragma db model version(BVER, CVER, true)
+
+#pragma db object
+struct object
+{
+ #pragma db id auto
+ int id;
+
+ int x;
+
+#if CVER > 1
+ int y;
+ #pragma db index ("xy_i") unique member(x) member(y, "DESC")
+#endif
+
+};
+
+#endif // ADD_INDEX_HXX