Bugzilla – Attachment 97498 Details for
Bug 24436
Record if a transfer was triggered by a 'hold'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24436: Add 'Reserve' options to branchtransfers trigger
Bug-24436-Add-Reserve-options-to-branchtransfers-t.patch (text/plain), 2.57 KB, created by
Martin Renvoize (ashimema)
on 2020-01-17 11:21:41 UTC
(
hide
)
Description:
Bug 24436: Add 'Reserve' options to branchtransfers trigger
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-01-17 11:21:41 UTC
Size:
2.57 KB
patch
obsolete
>From e4cbff8bd448ca81a23c7aa252eef3018fe1b022 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 17 Jan 2020 11:20:37 +0000 >Subject: [PATCH] Bug 24436: Add 'Reserve' options to branchtransfers trigger > >--- > .../data/mysql/atomicupdate/bug_24436.perl | 27 +++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 28 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_24436.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24436.perl b/installer/data/mysql/atomicupdate/bug_24436.perl >new file mode 100644 >index 0000000000..c834e6665a >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24436.perl >@@ -0,0 +1,27 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ # Add reserve triggers enum >+ $dbh->do( >+ qq{ >+ ALTER TABLE >+ `branchtransfers` >+ MODIFY COLUMN >+ `trigger` enum( >+ 'MANUAL', >+ 'StockrotationAdvance', >+ 'StockrotationRepatriation', >+ 'ReturnToHome', >+ 'ReturnToHolding', >+ 'RotatingCollection', >+ 'Reserve', >+ 'LostReserve', >+ 'CancelReserve' >+ ) >+ AFTER `comments` >+ } >+ ); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24299 - Add 'reserve' triggers to branchtransfers enum)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index af987ebea9..1f4e841ece 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -951,7 +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', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection'), -- what triggered the transfer >+ `trigger` ENUM('MANUAL', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection', 'Reserve', 'LostReserve', 'CancelReserve'), -- what triggered the transfer > PRIMARY KEY (`branchtransfer_id`), > KEY `frombranch` (`frombranch`), > KEY `tobranch` (`tobranch`), >-- >2.20.1
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 24436
:
97498
|
97499
|
97510
|
97511
|
97539
|
97540
|
100628
|
100629
|
101087
|
101088