Bugzilla – Attachment 6469 Details for
Bug 7272
Fix for Bug 6328 causes user accounts to be frozen (SIP2)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7272 setting NULL to debarred field, to avoid having 0000-00-00
Bug-7272-setting-NULL-to-debarred-field-to-avoid-h.patch (text/plain), 1.50 KB, created by
Paul Poulain
on 2011-11-30 13:54:04 UTC
(
hide
)
Description:
Bug 7272 setting NULL to debarred field, to avoid having 0000-00-00
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-11-30 13:54:04 UTC
Size:
1.50 KB
patch
obsolete
>From a301e74dd60e7ed51ac9bdec36e5e676aaafdfee Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Wed, 30 Nov 2011 14:53:48 +0100 >Subject: [PATCH] Bug 7272 setting NULL to debarred field, to avoid having > 0000-00-00 > >0000-00-00 can come only from a problem in the 3.06.00.001 update >--- > installer/data/mysql/updatedatabase.pl | 7 +++++++ > kohaversion.pl | 2 +- > 2 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index efa9898..9ae0060 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -4564,6 +4564,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion = "3.06.00.002"; >+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ $dbh->do("UPDATE borrowers SET debarred=NULL WHERE debarred='0000-00-00';"); >+ print "Setting NULL to debarred where 0000-00-00 is stored (bug 7272)"; >+ SetVersion($DBversion); >+} >+ > > =head1 FUNCTIONS > >diff --git a/kohaversion.pl b/kohaversion.pl >index 61ff87f..7f2be15 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.06.00.001'; >+ our $VERSION = '3.06.00.002'; > # version needs to be set this way > # so that it can be picked up by Makefile.PL > # during install >-- >1.7.5.4
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 7272
: 6469