Bugzilla – Attachment 110476 Details for
Bug 26057
Add Koha::Item::Transfer->cancel method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26057: Add datecancelled field to branchtransfers
Bug-26057-Add-datecancelled-field-to-branchtransfe.patch (text/plain), 2.07 KB, created by
Martin Renvoize (ashimema)
on 2020-09-21 14:59:21 UTC
(
hide
)
Description:
Bug 26057: Add datecancelled field to branchtransfers
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-09-21 14:59:21 UTC
Size:
2.07 KB
patch
obsolete
>From a052521afeb192227584ad7913dfaabada24ede8 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 21 Sep 2020 15:20:12 +0100 >Subject: [PATCH] Bug 26057: Add datecancelled field to branchtransfers > >--- > installer/data/mysql/atomicupdate/bug_26057.perl | 9 +++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 10 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_26057.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_26057.perl b/installer/data/mysql/atomicupdate/bug_26057.perl >new file mode 100644 >index 0000000000..4203a4d1fb >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_26057.perl >@@ -0,0 +1,9 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ if( !column_exists( 'branchtransfers', 'datecancelled' ) ) { >+ $dbh->do( "ALTER TABLE `branchtransfers` ADD COLUMN `datecancelled` datetime default NULL AFTER `datearrived`" ); >+ } >+ >+ NewVersion( $DBversion, 26057, "Add datecancelled field to branchtransfers"); >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 572a56310c..1a292b59f0 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -936,6 +936,7 @@ CREATE TABLE `branchtransfers` ( -- information for items that are in transit be > `datesent` datetime default NULL, -- the date the transfer was initialized > `frombranch` varchar(10) NOT NULL default '', -- the branch the transfer is coming from > `datearrived` datetime default NULL, -- the date the transfer arrived at its destination >+ `datecancelled` datetime default NULL, -- the date the transfer was cancelled > `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', 'RotatingCollection', 'Reserve', 'LostReserve', 'CancelReserve'), -- what triggered the transfer >-- >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 26057
:
110476
|
110477
|
111279
|
116554
|
116555
|
116556
|
117585
|
117586
|
117587
|
117588
|
117632
|
117633
|
117635