Bugzilla – Attachment 70806 Details for
Bug 19963
ethnicity and ethnicity tables and columns survived update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19963: Update 3.21.00.033 to drop ethnicity data if ''
Bug-19963-Update-32100033-to-drop-ethnicity-data-i.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2018-01-22 19:33:40 UTC
(
hide
)
Description:
Bug 19963: Update 3.21.00.033 to drop ethnicity data if ''
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-01-22 19:33:40 UTC
Size:
1.37 KB
patch
obsolete
>From e9e3ce36ed74ab6e2de7520f1f4d179b8d7292a1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 22 Jan 2018 16:31:28 -0300 >Subject: [PATCH] Bug 19963: Update 3.21.00.033 to drop ethnicity data if '' > >--- > installer/data/mysql/updatedatabase.pl | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 57a1a00c47..4fb60d34f1 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -11061,14 +11061,14 @@ if ( CheckVersion($DBversion) ) { > my $count_borrower_modifications = $dbh->selectrow_arrayref(q| > SELECT COUNT(*) > FROM borrower_modifications >- WHERE ethnicity IS NOT NULL >- OR ethnotes IS NOT NULL >+ WHERE ( ethnicity IS NOT NULL AND ethnicity == "" ) >+ OR ( ethnotes IS NOT NULL AND ethnotes == "" ) > |); > my $count_borrowers = $dbh->selectrow_arrayref(q| > SELECT COUNT(*) > FROM borrowers >- WHERE ethnicity IS NOT NULL >- OR ethnotes IS NOT NULL >+ WHERE ( ethnicity IS NOT NULL AND ethnicity == "" ) >+ OR ( ethnotes IS NOT NULL AND ethnotes == "" ) > |); > # We don't care about the ethnicity of the deleted borrowers, right? > if ( $count_ethnicity->[0] == 0 >-- >2.11.0
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 19963
: 70806