Bugzilla – Attachment 118607 Details for
Bug 12362
Branch transfer records orphaned on cancelled holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12362: Add 'TransferCancellation' as a transfer reason
Bug-12362-Add-TransferCancellation-as-a-transfer-r.patch (text/plain), 3.07 KB, created by
Martin Renvoize (ashimema)
on 2021-03-22 14:59:04 UTC
(
hide
)
Description:
Bug 12362: Add 'TransferCancellation' as a transfer reason
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-03-22 14:59:04 UTC
Size:
3.07 KB
patch
obsolete
>From 62019fb9bc82bde6d1c14613945f9c7302dedc65 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 22 Mar 2021 14:43:42 +0000 >Subject: [PATCH] Bug 12362: Add 'TransferCancellation' as a transfer reason > >This patch adds the database update to add 'TransferCancellation' as a >reason for transfer. >--- > .../data/mysql/atomicupdate/bug_12362.perl | 26 +++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 27 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_12362.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_12362.perl b/installer/data/mysql/atomicupdate/bug_12362.perl >new file mode 100644 >index 0000000000..e8b64b833f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_12362.perl >@@ -0,0 +1,26 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # Add reserve reasons enum >+ $dbh->do( >+ qq{ >+ ALTER TABLE >+ `branchtransfers` >+ MODIFY COLUMN >+ `reason` enum( >+ 'Manual', >+ 'StockrotationAdvance', >+ 'StockrotationRepatriation', >+ 'ReturnToHome', >+ 'ReturnToHolding', >+ 'RotatingCollection', >+ 'Reserve', >+ 'LostReserve', >+ 'CancelReserve', >+ 'TransferCancellation' >+ ) >+ AFTER `comments` >+ } >+ ); >+ >+ NewVersion( $DBversion, 12362, "Add 'TransferCancellion' reason to branchtransfers enum"); >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 9c31cb8cac..4ac65a33d4 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1530,7 +1530,7 @@ CREATE TABLE `branchtransfers` ( > `datecancelled` datetime default NULL COMMENT 'the date the transfer was cancelled', > `tobranch` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'the branch the transfer was going to', > `comments` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'any comments related to the transfer', >- `reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer', >+ `reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve', 'TransferCancellation') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer', > `cancellation_reason` ENUM('Manual', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection', 'Reserve', 'LostReserve', 'CancelReserve', 'ItemLost') default NULL COMMENT 'what triggered the transfer cancellation', > PRIMARY KEY (`branchtransfer_id`), > KEY `frombranch` (`frombranch`), >-- >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 12362
:
118607
|
118608
|
118609
|
118611
|
118819
|
118820
|
118821
|
119762
|
119763
|
119764
|
119898
|
119899
|
119900
|
119901
|
119902