Bug 24287: Add `reason` to `branchtransfers`
This patch adds the `reason` field to the `branchtransfers` table to record what triggered a transfer. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
c85cdd1922
commit
64f87158fd
|
|
@ -0,0 +1,18 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
unless ( column_exists('branchtransfers', 'reason') ) {
|
||||
$dbh->do(
|
||||
qq{
|
||||
ALTER TABLE branchtransfers
|
||||
ADD
|
||||
`reason` enum('Manual')
|
||||
AFTER
|
||||
comments
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 24287 - Add 'reason' field to transfers table)\n";
|
||||
}
|
||||
|
|
@ -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
|
||||
`reason` ENUM('Manual'), -- what triggered the transfer
|
||||
PRIMARY KEY (`branchtransfer_id`),
|
||||
KEY `frombranch` (`frombranch`),
|
||||
KEY `tobranch` (`tobranch`),
|
||||
|
|
|
|||
Loading…
Reference in New Issue