From 6d23a2d9d3633133cd1ad7fb19586ac0655ab8c2 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Thu, 30 Nov 2023 11:56:53 +0000
Subject: [PATCH] Bug 35451: DBIC Schema

Signed-off-by: David Nind <david@davidnind.com>
---
 Koha/Schema/Result/AdditionalFieldValue.pm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/Koha/Schema/Result/AdditionalFieldValue.pm b/Koha/Schema/Result/AdditionalFieldValue.pm
index 79fc5ccc9a0..ddf809c0f6a 100644
--- a/Koha/Schema/Result/AdditionalFieldValue.pm
+++ b/Koha/Schema/Result/AdditionalFieldValue.pm
@@ -39,6 +39,15 @@ primary key identifier
 
 foreign key references additional_fields(id)
 
+=head2 record_table
+
+  data_type: 'varchar'
+  default_value: (empty string)
+  is_nullable: 0
+  size: 255
+
+tablename of the related record
+
 =head2 record_id
 
   data_type: 'varchar'
@@ -64,6 +73,8 @@ __PACKAGE__->add_columns(
   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
   "field_id",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+  "record_table",
+  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
   "record_id",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 11 },
   "value",
@@ -105,4 +116,4 @@ __PACKAGE__->belongs_to(
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
-1;
+1;
\ No newline at end of file
-- 
2.49.0