aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-24 16:24:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-24 16:24:23 +0200
commit8974e4dae8e47e156c1993a50972fd93441afdfc (patch)
tree629c9c84e917f89c1b5ace044ab2c5c5127470ea
parent19c89827d68440780c918d32cae26eaa2241861d (diff)
Add comment
-rw-r--r--odb/schema-catalog.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/schema-catalog.cxx b/odb/schema-catalog.cxx
index ab83dbd..87d8b90 100644
--- a/odb/schema-catalog.cxx
+++ b/odb/schema-catalog.cxx
@@ -14,6 +14,11 @@ using namespace std;
namespace odb
{
+ // It is important we use vector to store the list of create
+ // functions since schema generators for some databases may
+ // rely on the DDL statements executing in a specific order,
+ // for example, for foreign key generation.
+ //
typedef bool (*create_function) (database&, unsigned short pass, bool drop);
typedef vector<create_function> create_functions;
struct schema_catalog_impl: map<string, create_functions> {};