Bugzilla – Attachment 100397 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: Update atomic update for new format
Bug-17845-Update-atomic-update-for-new-format.patch (text/plain), 1.87 KB, created by
Martin Renvoize (ashimema)
on 2020-03-09 17:00:02 UTC
(
hide
)
Description:
Bug 17845: Update atomic update for new format
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-03-09 17:00:02 UTC
Size:
1.87 KB
patch
obsolete
>From e951867e7d2b910e9eee537fa4e9597698888fff Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 9 Mar 2020 16:41:27 +0000 >Subject: [PATCH] Bug 17845: Update atomic update for new format > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/atomicupdate/bug_17845.perl | 13 +++++++++++++ > .../mysql/atomicupdate/bug_17845_remove_printers | 4 ---- > 2 files changed, 13 insertions(+), 4 deletions(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_17845.perl > delete mode 100644 installer/data/mysql/atomicupdate/bug_17845_remove_printers > >diff --git a/installer/data/mysql/atomicupdate/bug_17845.perl b/installer/data/mysql/atomicupdate/bug_17845.perl >new file mode 100644 >index 0000000000..a70505df37 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_17845.perl >@@ -0,0 +1,13 @@ >+$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" ); >+ } >+ >+ $dbh->do(qq{ DELETE FROM systempreferences WHERE variable = "printcirculationslips"} ); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 17845 - Drop unused table printers and branchprinter column)\n"; >+} >diff --git a/installer/data/mysql/atomicupdate/bug_17845_remove_printers b/installer/data/mysql/atomicupdate/bug_17845_remove_printers >deleted file mode 100644 >index 914860be44..0000000000 >--- a/installer/data/mysql/atomicupdate/bug_17845_remove_printers >+++ /dev/null >@@ -1,4 +0,0 @@ >-DROP TABLE IF EXISTS printers; >-ALTER TABLE branches DROP COLUMN branchprinter; >-DELETE FROM systempreferences WHERE variable = "printcirculationslips"; >--- Bug 17845: Drop unused table printers and branchprinter column >-- >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