bug 3481: add deleditems.permanent_location (DB rev 052)
Whenever a column is added to items, it must also be added to deleteditems - otherwise, whenever an item is deleted, it will not be saved to deleteditems. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
c46a43098f
commit
e4d57d80a2
3 changed files with 9 additions and 1 deletions
|
@ -946,6 +946,7 @@ CREATE TABLE `deleteditems` (
|
|||
`paidfor` mediumtext,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`location` varchar(80) default NULL,
|
||||
`permanent_location` varchar(80) default NULL,
|
||||
`onloan` date default NULL,
|
||||
`cn_source` varchar(10) default NULL,
|
||||
`cn_sort` varchar(30) default NULL,
|
||||
|
|
|
@ -2589,6 +2589,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
print "Upgrade to $DBversion done (fixed typos in new sysprefs)\n";
|
||||
}
|
||||
|
||||
$DBversion = '3.01.00.052';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do('ALTER TABLE deleteditems ADD COLUMN permanent_location VARCHAR(80) DEFAULT NULL AFTER location');
|
||||
SetVersion ($DBversion);
|
||||
print "Upgrade to $DBversion done (bug 3481: add permanent_location column to deleteditems)\n";
|
||||
}
|
||||
|
||||
=item DropAllForeignKeys($table)
|
||||
|
||||
Drop all foreign keys of the table $table
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
use strict;
|
||||
|
||||
sub kohaversion {
|
||||
our $VERSION = '3.01.00.051';
|
||||
our $VERSION = '3.01.00.052';
|
||||
# version needs to be set this way
|
||||
# so that it can be picked up by Makefile.PL
|
||||
# during install
|
||||
|
|
Loading…
Reference in a new issue