aboutsummaryrefslogtreecommitdiff
path: root/mapping
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-22 09:21:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-22 09:21:32 +0200
commit0da4b5d62dc10993db4d55236cb175e891a9c62b (patch)
tree6402eb39a8471415ba5bacb8a15073c59ccba89e /mapping
parentb2fcd4dcdeb0f4962f8c8a1ce1a6fd64c2014062 (diff)
Add --table-prefix option
Assign unique table prefixes to most examples. This makes sure that we don't end up with broken schemas where half of the tables were changed by the next test and the other half has foreign keys that now point to nowhere.
Diffstat (limited to 'mapping')
-rw-r--r--mapping/makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/mapping/makefile b/mapping/makefile
index 1b50fe2..31ffdb2 100644
--- a/mapping/makefile
+++ b/mapping/makefile
@@ -47,7 +47,8 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --hxx-prologue '\#include "traits.hxx"'
+--generate-query --hxx-prologue '\#include "traits.hxx"' \
+--table-prefix mapping_
$(gen): cpp_options := -I$(src_base)
$(gen): $(odb.l.cpp-options)