Bugzilla – Attachment 23230 Details for
Bug 6331
Obsolete marc column in deleteditems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH][SIGNED OFF] Bug 6331 - Obsolete marc column in deleteditems
0001-Bug-6331-Obsolete-marc-column-in-deleteditems.patch (text/plain), 2.08 KB, created by
Mathieu Saby
on 2013-11-30 10:48:03 UTC
(
hide
)
Description:
[PATCH][SIGNED OFF] Bug 6331 - Obsolete marc column in deleteditems
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-11-30 10:48:03 UTC
Size:
2.08 KB
patch
obsolete
>From c42654c76acd44dc17bcd07110259d0271b81af6 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 20 Nov 2013 14:42:04 +0100 >Subject: [PATCH][SIGNED OFF] Bug 6331 - Obsolete marc column in deleteditems >Content-Type: text/plain; charset="utf-8" > >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 : >- suppressing an item, checking the deleted item is properly stored in deleteditems table >- checking the column marc has been deleted from deleteditems table > >Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr> > >--- > installer/data/mysql/kohastructure.sql | 1 - > installer/data/mysql/updatedatabase.pl | 7 +++++++ > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 07160c8..8bcb74b 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -912,7 +912,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`), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index a9bfbbf..2c9813f 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -7778,6 +7778,13 @@ if(CheckVersion($DBversion)) { > 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); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6331
:
23055
|
23230
|
23256
|
23316
|
23320
|
23356
|
23725
|
23726
|
23727