aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/add-table.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-22 13:55:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:46 +0200
commit15c6024da6a15e2d6e3302e4df375092959edbe2 (patch)
tree713362e41b768cce1b9dd6566963a892d0a39d3c /common/changelog/add-table.hxx
parent31d4f4c0a03013fc8989213de5259e632fe45898 (diff)
Add changelog test
Diffstat (limited to 'common/changelog/add-table.hxx')
-rw-r--r--common/changelog/add-table.hxx35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/changelog/add-table.hxx b/common/changelog/add-table.hxx
new file mode 100644
index 0000000..8dfabc6
--- /dev/null
+++ b/common/changelog/add-table.hxx
@@ -0,0 +1,35 @@
+// file : common/changelog/add-table.hxx
+// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ADD_TABLE_HXX
+#define ADD_TABLE_HXX
+
+#include <vector>
+
+#pragma db model version(BVER, CVER, true)
+
+struct object1;
+
+#if CVER > 1
+#pragma db object
+struct object
+{
+ #pragma db id auto
+ int id;
+ int num;
+
+ std::vector<int> nums;
+ object1* o1;
+};
+#endif
+
+#pragma db object
+struct object1
+{
+ #pragma db id
+ int id;
+ int num;
+};
+
+#endif // ADD_TABLE_HXX