Bugzilla – Attachment 133553 Details for
Bug 30572
Field search_marc_to_field.sort needs syncing too
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30572: Dbrev for search_marc_to_field.sort
Bug-30572-Dbrev-for-searchmarctofieldsort.patch (text/plain), 1.21 KB, created by
Marcel de Rooy
on 2022-04-21 12:52:05 UTC
(
hide
)
Description:
Bug 30572: Dbrev for search_marc_to_field.sort
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-04-21 12:52:05 UTC
Size:
1.21 KB
patch
obsolete
>From caef11787de91d386ea52a3d8f8d551177387a54 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 21 Apr 2022 12:42:53 +0000 >Subject: [PATCH] Bug 30572: Dbrev for search_marc_to_field.sort >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run updatedatabase. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/bug_30572.pl | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_30572.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30572.pl b/installer/data/mysql/atomicupdate/bug_30572.pl >new file mode 100755 >index 0000000000..6c47443e0f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30572.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => 30572, >+ description => "Adjust search_marc_to_field.sort", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Do you stuffs here >+ $dbh->do(q| >+ALTER TABLE search_marc_to_field MODIFY COLUMN sort tinyint(1) DEFAULT 1 NOT NULL COMMENT 'Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this'; >+ |); >+ }, >+}; >-- >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 30572
:
133552
|
133553
|
133554
|
133892
|
133893
|
133894
|
134655