Bugzilla – Attachment 112090 Details for
Bug 26684
Remove 'marc' column from auth_header table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26684: Fix atomic update
Bug-26684-Fix-atomic-update.patch (text/plain), 1.15 KB, created by
David Cook
on 2020-10-21 04:50:29 UTC
(
hide
)
Description:
Bug 26684: Fix atomic update
Filename:
MIME Type:
Creator:
David Cook
Created:
2020-10-21 04:50:29 UTC
Size:
1.15 KB
patch
obsolete
>From a15c56868caf40fd383ac9c0a5578474369d5be1 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 21 Oct 2020 04:49:31 +0000 >Subject: [PATCH] Bug 26684: Fix atomic update > >--- > .../atomicupdate/001-26684-drop_marc_column_from_auth_header.perl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl b/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl >index 7dd8148208..bf4500c442 100755 >--- a/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl >+++ b/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl >@@ -1,6 +1,8 @@ > $DBversion = 'XXX'; # will be replaced by the RM > if( CheckVersion( $DBversion ) ) { >- $dbh->do( "ALTER TABLE auth_header DROP COLUMN marc" ); >+ if( column_exists( 'auth_header', 'marc' ) ) { >+ $dbh->do( "ALTER TABLE auth_header DROP COLUMN marc" ); >+ } > >- NewVersion( $DBversion, XXXXX, "Drop marc column from auth_header"); >+ NewVersion( $DBversion, 26684, "Drop marc column from auth_header"); > } >-- >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 26684
:
111670
|
111671
|
111672
|
112016
|
112018
|
112019
|
112087
|
112088
|
112089
| 112090