Bugzilla – Attachment 68421 Details for
Bug 10021
Remove dead code related to notifys
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10021: Update DB changes
Bug-10021-Update-DB-changes.patch (text/plain), 1.16 KB, created by
Jonathan Druart
on 2017-10-23 15:29:00 UTC
(
hide
)
Description:
Bug 10021: Update DB changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-10-23 15:29:00 UTC
Size:
1.16 KB
patch
obsolete
>From c0163d43cd4e0eb98f6ef38dea7e2113cf603217 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 23 Oct 2017 12:27:33 -0300 >Subject: [PATCH] Bug 10021: Update DB changes > >--- > installer/data/mysql/atomicupdate/bug_10021.perl | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_10021.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_10021.perl b/installer/data/mysql/atomicupdate/bug_10021.perl >new file mode 100644 >index 0000000000..74b1c43b1d >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_10021.perl >@@ -0,0 +1,14 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ $dbh->do(q|DROP TABLE IF EXISTS notifys|); >+ >+ if( column_exists( 'accountlines', 'notify_id' ) ) { >+ $dbh->do(q|ALTER TABLE accountlines DROP COLUMN notify_id|); >+ $dbh->do(q|ALTER TABLE accountlines DROP COLUMN notify_level|); >+ } >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 10021 - Drop notifys-related table and columns)\n"; >+} >-- >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 10021
:
54194
|
68262
|
68263
|
68419
|
68420
|
68421
|
68422
|
68477
|
68478
|
68479
|
68480
|
68505
|
68506
|
68793
|
68794
|
68795
|
68796
|
68797
|
68798
|
68920
|
68953
|
68954
|
68955
|
68956
|
68957
|
68958
|
68959
|
69695
|
69696
|
69698