Browse Source
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>20.05.x
Martin Renvoize
4 years ago
2 changed files with 19 additions and 0 deletions
@ -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"; |
|||
} |
Loading…
Reference in new issue