Bug 6331: remove obsolete column deleteditems.marc

There is a difference between "items" and "deleteditems" tables
in "kohastructure.sql"
"deleteditems" has a field "marc" not existing in "items".

This patch removes this obsolete column.

Test :
- after deleting an item, check that the deleted item is properly
  stored in deleteditems table
- check that the column marc has been deleted from deleteditems table

Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Fridolyn SOMERS 2013-11-20 14:42:04 +01:00 committed by Galen Charlton
parent be55359877
commit e1fb1a658c
2 changed files with 7 additions and 1 deletions

View file

@ -917,7 +917,6 @@ CREATE TABLE `deleteditems` (
`enumchron` text default NULL, -- serial enumeration/chronology for the item (MARC21 952$h)
`copynumber` varchar(32) default NULL, -- copy number (MARC21 952$t)
`stocknumber` varchar(32) default NULL, -- inventory number (MARC21 952$i)
`marc` longblob, -- unused in Koha
PRIMARY KEY (`itemnumber`),
KEY `delitembarcodeidx` (`barcode`),
KEY `delitemstocknumberidx` (`stocknumber`),

View file

@ -7868,6 +7868,13 @@ if ( CheckVersion($DBversion) ) {
ALTER TABLE suggestions MODIFY suggesteddate DATE NOT NULL
});
print "Upgrade to $DBversion done (Bug 11391) - drop default value on suggestions.suggesteddate column)\n";
SetVersion ($DBversion);
}
$DBversion = "3.15.00.XXX";
if(CheckVersion($DBversion)) {
$dbh->do("ALTER TABLE deleteditems DROP COLUMN marc");
print "Upgrade to $DBversion done (Bug 6331: Obsolete marc column in deleteditems)\n";
SetVersion($DBversion);
}