diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-15 13:43:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-15 13:43:39 +0200 |
commit | c17f5ff5b2f1523e92e048623f51638f83b34022 (patch) | |
tree | dce2d719943a49ff8e4160b691423d6312ff94d5 /odb/relational/sqlite | |
parent | 51956f409ec7ebea8b6790b0c5d4f0b51513d683 (diff) |
Diagnose change of polymorphic base, table kind
Diffstat (limited to 'odb/relational/sqlite')
-rw-r--r-- | odb/relational/sqlite/schema.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/relational/sqlite/schema.cxx b/odb/relational/sqlite/schema.cxx index 24bc2ef..ac9a753 100644 --- a/odb/relational/sqlite/schema.cxx +++ b/odb/relational/sqlite/schema.cxx @@ -54,9 +54,7 @@ namespace relational // around this problem is to delete from the root table and rely // on the cascade to clean up the rest. // - if (migration && - t.extra ().count ("kind") != 0 && - t.extra ()["kind"] == "polymorphic") + if (migration && t.extra ()["kind"] == "polymorphic derived object") { using sema_rel::model; using sema_rel::table; @@ -82,7 +80,7 @@ namespace relational } } } - while (p->extra ().count ("kind") != 0); + while (p->extra ()["kind"] != "polymorphic root object"); primary_key& rkey (*p->find<primary_key> ("")); primary_key& dkey (*t.find<primary_key> ("")); |