diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-24 13:29:52 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-24 14:12:42 +0300 |
commit | def0adc835b35f503eda48049e9e753786c21655 (patch) | |
tree | cc4dcf7c2e02132e2f0cee0523a74906cf70107a /libbrep | |
parent | e52bba0e65fb3c2eee9adb7672381964b35aad9c (diff) |
Add support for build-time mark (*) in tests, examples, and benchmarks package manifest values
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"/> |