Bugzilla – Attachment 100433 Details for
Bug 17845
Printers related code should be removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17845: Remove the column if it exists
Bug-17845-Remove-the-column-if-it-exists.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2020-03-10 10:13:18 UTC
(
hide
)
Description:
Bug 17845: Remove the column if it exists
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-10 10:13:18 UTC
Size:
1.21 KB
patch
obsolete
>From 49a8f288bbd51fdb7a13e5f24479d491ff6d6237 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 10 Mar 2020 10:56:08 +0100 >Subject: [PATCH] Bug 17845: Remove the column if it exists > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > installer/data/mysql/atomicupdate/bug_17845.perl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_17845.perl b/installer/data/mysql/atomicupdate/bug_17845.perl >index a70505df37..a9dc391f60 100644 >--- a/installer/data/mysql/atomicupdate/bug_17845.perl >+++ b/installer/data/mysql/atomicupdate/bug_17845.perl >@@ -2,10 +2,10 @@ $DBversion = 'XXX'; # will be replaced by the RM > if( CheckVersion( $DBversion ) ) { > $dbh->do( "DROP TABLE IF EXISTS printers" ); > >- if( !column_exists( 'branches', 'branchprinter' ) ) { >- $dbh->do( "ALTER TABLE branches DROP COLUMN branchprinter" ); >+ if( column_exists( 'branches', 'branchprinter' ) ) { >+ $dbh->do( "ALTER TABLE branches DROP COLUMN branchprinter" ); > } >- >+ > $dbh->do(qq{ DELETE FROM systempreferences WHERE variable = "printcirculationslips"} ); > > SetVersion( $DBversion ); >-- >2.20.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 17845
:
79008
|
79553
|
79598
|
100396
|
100397
|
100398
|
100399
|
100400
|
100427
|
100428
|
100429
|
100430
|
100431
|
100432
| 100433 |
100434