aboutsummaryrefslogtreecommitdiff
path: root/evolution/drop-table/model.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-08-16 10:57:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-17 12:04:02 +0200
commit82466170040f5ccdfbeaf88e1d450add7b866f4b (patch)
tree73db0a0b450a30d18c593574526f5a0a5515c291 /evolution/drop-table/model.hxx
parente8b23f12981a754757c49471f4e4a2376368909b (diff)
Implement soft delete for persistent classes
Diffstat (limited to 'evolution/drop-table/model.hxx')
-rw-r--r--evolution/drop-table/model.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/evolution/drop-table/model.hxx b/evolution/drop-table/model.hxx
index f5bbd9e..64022bb 100644
--- a/evolution/drop-table/model.hxx
+++ b/evolution/drop-table/model.hxx
@@ -29,8 +29,11 @@ namespace MODEL_NAMESPACE(MODEL_VERSION)
std::string str;
};
-#if MODEL_VERSION == 2
+#if MODEL_VERSION > 1
#pragma db object
+#if MODEL_VERSION == 3
+ #pragma db deleted(3)
+#endif
struct object1
{
object1 (): o (0) {}