aboutsummaryrefslogtreecommitdiff
path: root/libbrep/build.xml
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-05 21:23:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-08 17:44:57 +0300
commit70c1cdfd8f34472761fe5ec97f0713990c1b4f5b (patch)
treef2e631c10563bcc0cde07e4359c11b800a188d86 /libbrep/build.xml
parent3be834183ae36c321e4b560dce9a63cee846e63d (diff)
Add multi-tenancy support
Diffstat (limited to 'libbrep/build.xml')
-rw-r--r--libbrep/build.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbrep/build.xml b/libbrep/build.xml
index 0fd4154..0116374 100644
--- a/libbrep/build.xml
+++ b/libbrep/build.xml
@@ -1,6 +1,7 @@
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="build" version="1">
<model version="4">
<table name="build" kind="object">
+ <column name="package_tenant" type="TEXT" null="false"/>
<column name="package_name" type="CITEXT" null="false"/>
<column name="package_version_epoch" type="INTEGER" null="false"/>
<column name="package_version_canonical_upstream" type="TEXT" null="false"/>
@@ -26,6 +27,7 @@
<column name="machine_summary" type="TEXT" null="false"/>
<column name="target" type="TEXT" null="false"/>
<primary-key>
+ <column name="package_tenant"/>
<column name="package_name"/>
<column name="package_version_epoch"/>
<column name="package_version_canonical_upstream"/>
@@ -39,6 +41,7 @@
</primary-key>
</table>
<table name="build_results" kind="container">
+ <column name="package_tenant" type="TEXT" null="false"/>
<column name="package_name" type="CITEXT" null="false"/>
<column name="package_version_epoch" type="INTEGER" null="false"/>
<column name="package_version_canonical_upstream" type="TEXT" null="false"/>
@@ -54,6 +57,7 @@
<column name="status" type="TEXT" null="false"/>
<column name="log" type="TEXT" null="false"/>
<foreign-key name="object_id_fk" on-delete="CASCADE">
+ <column name="package_tenant"/>
<column name="package_name"/>
<column name="package_version_epoch"/>
<column name="package_version_canonical_upstream"/>
@@ -65,6 +69,7 @@
<column name="toolchain_version_canonical_release"/>
<column name="toolchain_version_revision"/>
<references table="build">
+ <column name="package_tenant"/>
<column name="package_name"/>
<column name="package_version_epoch"/>
<column name="package_version_canonical_upstream"/>
@@ -78,6 +83,7 @@
</references>
</foreign-key>
<index name="build_results_object_id_i">
+ <column name="package_tenant"/>
<column name="package_name"/>
<column name="package_version_epoch"/>
<column name="package_version_canonical_upstream"/>