aboutsummaryrefslogtreecommitdiff
path: root/common/changelog
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-04-03 11:22:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:46 +0200
commit516523183fad016a26c7400d784eb9c0343b7964 (patch)
treeb2e5df0194c28df2b9bcaf822f6f06b92a267118 /common/changelog
parente7f6315882ef16939f99dd757eaf800b9f12e92b (diff)
Generate add/drop table migration statements
Diffstat (limited to 'common/changelog')
-rw-r--r--common/changelog/makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/changelog/makefile b/common/changelog/makefile
index 0e4ecf9..8d5e96d 100644
--- a/common/changelog/makefile
+++ b/common/changelog/makefile
@@ -38,8 +38,8 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb) FORCE # Force regeneration even if up to date.
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) \
---generate-schema-only --schema-format sql --changelog-dir $(out_base)
+$(gen): export odb_options += --database $(db_id) --generate-schema-only \
+--schema-format sql --suppress-migration --changelog-dir $(out_base)
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
@@ -47,6 +47,7 @@ ifdef STEP
ifeq ($(STEP),1)
$(gen): cpp_options += -DBVER=1 -DCVER=1 # Initialize.
+$(gen): odb_options += --init-changelog # Suppress notice.
else ifeq ($(STEP),2)
$(gen): cpp_options += -DBVER=1 -DCVER=2 # Diff.
else ifeq ($(STEP),3)