aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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> {};