summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/table.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-28 16:04:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:44 +0200
commit2aa3cabf1b737e225178230882ee9aadfd817ce0 (patch)
tree85a6c7a90f8483ca11a4bc825cd2ef22114c3d97 /odb/semantics/relational/table.hxx
parente999b1e7295acd8cdb646c2db7db1f5059f10c7d (diff)
Add changelog support for add/drop index/foreign key
Also diagnose changes to primary keys and establish the 'alters' association.
Diffstat (limited to 'odb/semantics/relational/table.hxx')
-rw-r--r--odb/semantics/relational/table.hxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/odb/semantics/relational/table.hxx b/odb/semantics/relational/table.hxx
index effd552..ae4c96c 100644
--- a/odb/semantics/relational/table.hxx
+++ b/odb/semantics/relational/table.hxx
@@ -15,8 +15,8 @@ namespace semantics
{
public:
table (string const& id): qnameable (id) {}
- table (table const&, qscope&, graph&);
- table (xml::parser&, qscope&, graph&);
+ table (table const&, qscope&, graph&, bool base = false);
+ table (xml::parser&, qscope&, graph&, bool base = false);
virtual table&
clone (qscope&, graph&) const;
@@ -66,12 +66,14 @@ namespace semantics
serialize (xml::serializer&) const;
};
- class alter_table: public qnameable, public uscope
+ class alter_table: public table
{
public:
- alter_table (string const& id): qnameable (id) {}
- alter_table (alter_table const&, qscope&, graph&);
- alter_table (xml::parser&, qscope&, graph&);
+ alter_table (string const& id): table (id) {}
+ alter_table (alter_table const& at, qscope& s, graph& g)
+ : table (at, s, g, true) {}
+ alter_table (xml::parser& p, qscope& s, graph& g)
+ : table (p, s, g, true) {}
virtual alter_table&
clone (qscope&, graph&) const;
@@ -81,10 +83,6 @@ namespace semantics
virtual void
serialize (xml::serializer&) const;
-
- // Resolve ambiguity.
- //
- using qnameable::scope;
};
}
}