diff options
Diffstat (limited to 'libbrep')
-rw-r--r-- | libbrep/package.hxx | 11 | ||||
-rw-r--r-- | libbrep/package.xml | 6 |
2 files changed, 15 insertions, 2 deletions
diff --git a/libbrep/package.hxx b/libbrep/package.hxx index 1619185..85eaec0 100644 --- a/libbrep/package.hxx +++ b/libbrep/package.hxx @@ -20,7 +20,7 @@ // #define LIBBREP_PACKAGE_SCHEMA_VERSION_BASE 19 -#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 20, closed) +#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 21, closed) namespace brep { @@ -194,15 +194,22 @@ namespace brep struct test_dependency: dependency { test_dependency_type type; + bool buildtime; test_dependency () = default; test_dependency (package_name n, test_dependency_type t, + bool b, optional<version_constraint> c) : dependency {std::move (n), std::move (c), nullptr /* package */}, - type (t) + type (t), + buildtime (b) { } + + // Database mapping. + // + #pragma db member(buildtime) default(false) // @@ TMP }; // certificate diff --git a/libbrep/package.xml b/libbrep/package.xml index 01597c2..093f54e 100644 --- a/libbrep/package.xml +++ b/libbrep/package.xml @@ -1,4 +1,10 @@ <changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="package" version="1"> + <changeset version="21"> + <alter-table name="package_tests"> + <add-column name="test_buildtime" type="BOOLEAN" null="false" default="FALSE"/> + </alter-table> + </changeset> + <changeset version="20"> <alter-table name="tenant"> <add-column name="private" type="BOOLEAN" null="false" default="FALSE"/> |