Bugzilla – Attachment 15071 Details for
Bug 7718
Remove itemnumber column from serials table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7718 - Remove itemnumber column from serials table
Bug-7718---Remove-itemnumber-column-from-serials-t.patch (text/plain), 1.75 KB, created by
Kyle M Hall (khall)
on 2013-02-05 20:02:19 UTC
(
hide
)
Description:
Bug 7718 - Remove itemnumber column from serials table
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-02-05 20:02:19 UTC
Size:
1.75 KB
patch
obsolete
>From e1f58b8df320e7a324cc7b1af6927850268af642 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 4 Feb 2013 08:16:58 -0500 >Subject: [PATCH] Bug 7718 - Remove itemnumber column from serials table > >Remove the column 'itemnumber' from the table 'serial'. This is >a 1 to many relationship, and this reference does not make sense. >The 'serialitems' table handles the relationship between the 'items' >table and the 'serial' table. > >Test Plan: >1) Apply patch >2) Run updatedatabase.pl >3) Verify serial.itemnumber has been removed from the database >--- > installer/data/mysql/kohastructure.sql | 1 - > installer/data/mysql/updatedatabase.pl | 7 +++++++ > 2 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index ed673da..49b8d2f 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1799,7 +1799,6 @@ CREATE TABLE `serial` ( > `planneddate` date default NULL, > `notes` text, > `publisheddate` date default NULL, >- `itemnumber` text default NULL, > `claimdate` date default NULL, > `routingnotes` text, > PRIMARY KEY (`serialid`) >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index ed922b8..91b66b0 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6399,6 +6399,13 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion ="3.11.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do("ALTER TABLE serial DROP itemnumber"); >+ print "Upgrade to $DBversion done (Bug 7718 - Remove itemnumber column from serials table)\n"; >+ SetVersion($DBversion); >+} >+ > > =head1 FUNCTIONS > >-- >1.7.2.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 7718
:
9118
|
15031
|
15071
|
15073
|
18304