[Koha-patches] [PATCH] kohabug 2076 - make biblioitems.marc longblob during upgrade

Galen Charlton galen.charlton at liblime.com
Mon May 5 17:04:25 CEST 2008


Change to match 3.0 definition of that column.
---
 .../22_to_30/move_marc_to_biblioitems.pl           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl b/misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl
index d55d48b..883af15 100755
--- a/misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl
+++ b/misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl
@@ -22,7 +22,7 @@ my $dbh = C4::Context->dbh();
 #
 
 # changing marc field type
-$dbh->do('ALTER TABLE `biblioitems` CHANGE `marc` `marc` BLOB NULL DEFAULT NULL ');
+$dbh->do('ALTER TABLE `biblioitems` CHANGE `marc` `marc` LONGBLOB NULL DEFAULT NULL ');
 # adding marc xml, just for convenience
 $dbh->do('ALTER TABLE `biblioitems` ADD `marcxml` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ');
 # moving data from marc_subfield_value to biblio
-- 
1.5.5.rc0.16.g02b00




More information about the Koha-patches mailing list