From f313ac49d100afe888e04207f4383b84eaa7c7af Mon Sep 17 00:00:00 2001
From: charles <charles.farmer@inlibro.com>
Date: Wed, 6 Apr 2016 11:30:14 -0400
Subject: [PATCH] Bug 8000 - Add a sentto_address column to message_queue

The problem with message_queue is the inability to tell if the
to_address was overriden at the time it was sent/attempted.
This column will reflect what was attempted.

MessageQueue.pm was generated by running the script
installer/data/mysql/updatedatabase.pl and then git add'ing
the resulting Koha/Schema/Result/MessageQueue.pm file. This is
necessary for 3.16 and higher.
---
 Koha/Schema/Result/MessageQueue.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Koha/Schema/Result/MessageQueue.pm b/Koha/Schema/Result/MessageQueue.pm
index 346b463..0c360e0 100644
--- a/Koha/Schema/Result/MessageQueue.pm
+++ b/Koha/Schema/Result/MessageQueue.pm
@@ -82,6 +82,11 @@ __PACKAGE__->table("message_queue");
   data_type: 'mediumtext'
   is_nullable: 1
 
+=head2 sentto_address
+
+  data_type: 'mediumtext'
+  is_nullable: 1
+
 =head2 from_address
 
   data_type: 'mediumtext'
@@ -125,6 +130,8 @@ __PACKAGE__->add_columns(
   },
   "to_address",
   { data_type => "mediumtext", is_nullable => 1 },
+  "sentto_address",
+  { data_type => "mediumtext", is_nullable => 1 },
   "from_address",
   { data_type => "mediumtext", is_nullable => 1 },
   "content_type",
-- 
1.9.1