Bugzilla – Attachment 97516 Details for
Bug 24287
Add ability to record what triggered a given transfer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24287: Add `trigger` to `branchtransfers`
Bug-24287-Add-trigger-to-branchtransfers.patch (text/plain), 2.10 KB, created by
Kyle M Hall
on 2020-01-17 13:59:24 UTC
(
hide
)
Description:
Bug 24287: Add `trigger` to `branchtransfers`
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2020-01-17 13:59:24 UTC
Size:
2.10 KB
patch
obsolete
>From 0fbaadb423d8a400e01c77e1da14279db9f49353 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 20 Dec 2019 16:02:01 +0000 >Subject: [PATCH] Bug 24287: Add `trigger` to `branchtransfers` > >This patch adds the `trigger` field to the `branchtransfers` table to >record what triggered a transfer. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../data/mysql/atomicupdate/bug_24287.perl | 18 ++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 19 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_24287.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24287.perl b/installer/data/mysql/atomicupdate/bug_24287.perl >new file mode 100644 >index 0000000000..65c59b938a >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24287.perl >@@ -0,0 +1,18 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ unless ( column_exists('branchtransfers', 'trigger') ) { >+ $dbh->do( >+ qq{ >+ ALTER TABLE branchtransfers >+ ADD >+ `trigger` enum('Manual') >+ AFTER >+ comments >+ } >+ ); >+ } >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24287 - Add 'trigger' field to transfers table)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 328b1acf96..4454b14969 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -951,6 +951,7 @@ CREATE TABLE `branchtransfers` ( -- information for items that are in transit be > `datearrived` datetime default NULL, -- the date the transfer arrived at its destination > `tobranch` varchar(10) NOT NULL default '', -- the branch the transfer was going to > `comments` LONGTEXT, -- any comments related to the transfer >+ `trigger` ENUM('Manual'), -- what triggered the transfer > PRIMARY KEY (`branchtransfer_id`), > KEY `frombranch` (`frombranch`), > KEY `tobranch` (`tobranch`), >-- >2.21.1 (Apple Git-122.3)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24287
:
96594
|
97501
|
97516
|
97532
|
98023