Bugzilla – Attachment 2804 Details for
Bug 5423
Deleted Patrons are no longer saved in table deletedborrowers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Revised patch.
0001-SIGNED-OFF-Bug-5423-Deleted-Patrons-are-no-longer-sa.patch (text/plain), 2.66 KB, created by
Katrin Fischer
on 2010-12-06 12:46:56 UTC
(
hide
)
Description:
Revised patch.
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2010-12-06 12:46:56 UTC
Size:
2.66 KB
patch
obsolete
>From 4a0833ffd5f89ffe95426c70e82998aaaf264fd7 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 6 Dec 2010 08:28:38 +0100 >Subject: [PATCH] [SIGNED-OFF]Bug 5423: Deleted Patrons are no longer saved in table deletedborrowers >Content-Type: text/plain; charset="utf-8" > >Tested with HEAD >> Should also apply to 3.2.x >( Not tested with 3.2.x) > >Signed-off-by: Koustubha Kale <kmkale@anantcorp.com> >--- > installer/data/mysql/kohastructure.sql | 3 ++- > installer/data/mysql/updatedatabase.pl | 9 +++++++++ > kohaversion.pl | 2 +- > 3 files changed, 12 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 9148970..695129b 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -642,7 +642,7 @@ CREATE TABLE `deletedbiblioitems` ( > DROP TABLE IF EXISTS `deletedborrowers`; > CREATE TABLE `deletedborrowers` ( > `borrowernumber` int(11) NOT NULL default 0, >- `cardnumber` varchar(9) NOT NULL default '', >+ `cardnumber` varchar(16) NOT NULL default '', > `surname` mediumtext NOT NULL, > `firstname` text, > `title` mediumtext, >@@ -703,6 +703,7 @@ CREATE TABLE `deletedborrowers` ( > `altcontactcountry` text default NULL, > `altcontactphone` varchar(50) default NULL, > `smsalertnumber` varchar(50) default NULL, >+ `privacy` integer(11) DEFAULT '1' NOT NULL, > KEY `borrowernumber` (`borrowernumber`), > KEY `cardnumber` (`cardnumber`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8; >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index d093946..550e490 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -3876,6 +3876,15 @@ VALUES > SetVersion ($DBversion); > }; > >+$DBversion = '3.0X.0X.XXX'; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("ALTER TABLE deletedborrowers ADD `privacy` int(11) AFTER smsalertnumber;"); >+ $dbh->do("ALTER TABLE deletedborrowers CHANGE `cardnumber` `cardnumber` varchar(16);"); >+ print "Upgrade to $DBversion done (Fix differences between borrowers and deletedborrowers)\n"; >+ SetVersion ($DBversion); >+} >+ >+ > =head1 FUNCTIONS > > =head2 DropAllForeignKeys($table) >diff --git a/kohaversion.pl b/kohaversion.pl >index 53c1724..fc453fb 100644 >--- a/kohaversion.pl >+++ b/kohaversion.pl >@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : > use strict; > > sub kohaversion { >- our $VERSION = '3.03.00.004'; >+ our $VERSION = '3.0X.0X.XXX'; > # version needs to be set this way > # so that it can be picked up by Makefile.PL > # during install >-- >1.7.1 >
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 5423
:
2777
|
2778
|
2802
| 2804