From 6cb77d97d659441036fac18af6479eeac4127dcb Mon Sep 17 00:00:00 2001
From: Karen Arutyunov <karen@codesynthesis.com>
Date: Fri, 29 Mar 2024 21:13:23 +0300
Subject: Stash build toolchain in tenant object

---
 libbrep/build-extra.sql | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'libbrep/build-extra.sql')

diff --git a/libbrep/build-extra.sql b/libbrep/build-extra.sql
index 374cf73..a931f31 100644
--- a/libbrep/build-extra.sql
+++ b/libbrep/build-extra.sql
@@ -44,7 +44,14 @@ CREATE FOREIGN TABLE build_tenant (
   service_id TEXT NULL,
   service_type TEXT NULL,
   service_data TEXT NULL,
-  queued_timestamp BIGINT NULL)
+  queued_timestamp BIGINT NULL,
+  toolchain_name TEXT OPTIONS (column_name 'build_toolchain_name') NULL,
+  toolchain_version_epoch INTEGER OPTIONS (column_name 'build_toolchain_version_epoch') NULL,
+  toolchain_version_canonical_upstream TEXT OPTIONS (column_name 'build_toolchain_version_canonical_upstream') NULL,
+  toolchain_version_canonical_release TEXT OPTIONS (column_name 'build_toolchain_version_canonical_release') NULL,
+  toolchain_version_revision INTEGER OPTIONS (column_name 'build_toolchain_version_revision') NULL,
+  toolchain_version_upstream TEXT OPTIONS (column_name 'build_toolchain_version_upstream') NULL,
+  toolchain_version_release TEXT OPTIONS (column_name 'build_toolchain_version_release') NULL)
 SERVER package_server OPTIONS (table_name 'tenant');
 
 -- The foreign table for build_repository object.
-- 
cgit v1.1

