aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/drop-foreign-key.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/changelog/drop-foreign-key.hxx')
-rw-r--r--common/changelog/drop-foreign-key.hxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/changelog/drop-foreign-key.hxx b/common/changelog/drop-foreign-key.hxx
new file mode 100644
index 0000000..4a70c6b
--- /dev/null
+++ b/common/changelog/drop-foreign-key.hxx
@@ -0,0 +1,30 @@
+// file : common/changelog/drop-foreign-key.hxx
+// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef DROP_FOREIGN_KEY_HXX
+#define DROP_FOREIGN_KEY_HXX
+
+#pragma db model version(BVER, CVER, true)
+
+struct object1;
+
+#pragma db object
+struct object
+{
+ #pragma db id auto
+ int id;
+
+#if CVER == 1
+ object1* o1;
+#endif
+};
+
+#pragma db object
+struct object1
+{
+ #pragma db id
+ int id;
+};
+
+#endif // DROP_FOREIGN_KEY_HXX