aboutsummaryrefslogtreecommitdiff
path: root/libbrep
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-12-21 21:37:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-01-17 19:22:38 +0300
commit36115f92a7fdebaf13cb968b1acfe3c9973c0df4 (patch)
tree3b7a518df3f276a06793811d205faef4b38c1692 /libbrep
parent66e1aa46e47873227295aac41bcabf75f94dbca7 (diff)
Adapt to package manifest requirement classes change
Diffstat (limited to 'libbrep')
-rw-r--r--libbrep/build-extra.sql4
-rw-r--r--libbrep/build.hxx2
-rw-r--r--libbrep/build.xml2
-rw-r--r--libbrep/package.hxx2
-rw-r--r--libbrep/package.xml9
5 files changed, 15 insertions, 4 deletions
diff --git a/libbrep/build-extra.sql b/libbrep/build-extra.sql
index a8464cf..a2960ba 100644
--- a/libbrep/build-extra.sql
+++ b/libbrep/build-extra.sql
@@ -70,7 +70,6 @@ CREATE FOREIGN TABLE build_package_requirements (
version_canonical_release TEXT NOT NULL COLLATE "C",
version_revision INTEGER NOT NULL,
index BIGINT NOT NULL,
- conditional BOOLEAN NOT NULL,
buildtime BOOLEAN NOT NULL,
comment TEXT NOT NULL)
SERVER package_server OPTIONS (table_name 'package_requirements');
@@ -84,7 +83,8 @@ CREATE FOREIGN TABLE build_package_requirement_alternatives (
version_revision INTEGER NOT NULL,
requirement_index BIGINT NOT NULL,
index BIGINT NOT NULL,
- enable TEXT NULL)
+ enable TEXT NULL,
+ reflect TEXT NULL)
SERVER package_server OPTIONS (table_name 'package_requirement_alternatives');
CREATE FOREIGN TABLE build_package_requirement_alternative_requirements (
diff --git a/libbrep/build.hxx b/libbrep/build.hxx
index de12a70..968a91f 100644
--- a/libbrep/build.hxx
+++ b/libbrep/build.hxx
@@ -30,7 +30,7 @@
//
#define LIBBREP_BUILD_SCHEMA_VERSION_BASE 15
-#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 16, closed)
+#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 17, closed)
// We have to keep these mappings at the global scope instead of inside
// the brep namespace because they need to be also effective in the
diff --git a/libbrep/build.xml b/libbrep/build.xml
index d90f871..92b83af 100644
--- a/libbrep/build.xml
+++ b/libbrep/build.xml
@@ -1,4 +1,6 @@
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="build" version="1">
+ <changeset version="17"/>
+
<changeset version="16"/>
<model version="15">
diff --git a/libbrep/package.hxx b/libbrep/package.hxx
index 7c214f7..46e5292 100644
--- a/libbrep/package.hxx
+++ b/libbrep/package.hxx
@@ -20,7 +20,7 @@
//
#define LIBBREP_PACKAGE_SCHEMA_VERSION_BASE 21
-#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 22, closed)
+#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 23, closed)
namespace brep
{
diff --git a/libbrep/package.xml b/libbrep/package.xml
index 956e5d2..72e9c83 100644
--- a/libbrep/package.xml
+++ b/libbrep/package.xml
@@ -1,4 +1,13 @@
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="package" version="1">
+ <changeset version="23">
+ <alter-table name="package_requirements">
+ <drop-column name="conditional"/>
+ </alter-table>
+ <alter-table name="package_requirement_alternatives">
+ <add-column name="reflect" type="TEXT" null="true"/>
+ </alter-table>
+ </changeset>
+
<changeset version="22">
<alter-table name="package_dependency_alternatives">
<add-column name="enable" type="TEXT" null="true"/>