Bugzilla – Attachment 98295 Details for
Bug 24299
Record if a transfer was triggered by 'rotating collections'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24299: Add 'RotatingCollection' branchtransfer trigger
Bug-24299-Add-RotatingCollection-branchtransfer-tr.patch (text/plain), 2.42 KB, created by
Martin Renvoize (ashimema)
on 2020-02-03 13:23:33 UTC
(
hide
)
Description:
Bug 24299: Add 'RotatingCollection' branchtransfer trigger
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-02-03 13:23:33 UTC
Size:
2.42 KB
patch
obsolete
>From a5856fff48196bacee279776692a6059849d620f Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 16 Jan 2020 16:43:09 +0000 >Subject: [PATCH] Bug 24299: Add 'RotatingCollection' branchtransfer trigger > >--- > .../data/mysql/atomicupdate/bug_24299.perl | 24 +++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 25 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_24299.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24299.perl b/installer/data/mysql/atomicupdate/bug_24299.perl >new file mode 100644 >index 0000000000..96b0bc85d0 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24299.perl >@@ -0,0 +1,24 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ # Add rotating collection states to reason enum >+ $dbh->do( >+ qq{ >+ ALTER TABLE >+ `branchtransfers` >+ MODIFY COLUMN >+ `reason` enum( >+ 'Manual', >+ 'StockrotationAdvance', >+ 'StockrotationRepatriation', >+ 'ReturnToHome', >+ 'ReturnToHolding', >+ 'RotatingCollection' >+ ) >+ AFTER `comments` >+ } >+ ); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24299 - Add 'collection' reasons to branchtransfers enum)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 1c2ededa23..563ac9eb30 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 >- `reason` ENUM('Manual', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding'), -- what triggered the transfer >+ `reason` ENUM('Manual', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection'), -- 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 24299
:
97464
|
97465
|
97508
|
97509
|
97537
|
97538
|
98295
|
98296
|
100626
|
100627
|
101075
|
101076
|
101077
|
101083
|
101084
|
101085
|
101086
|
101097