Bugzilla – Attachment 22905 Details for
Bug 11196
SearchEngine pref not in sysprefs.sql
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11196: Add SearchEngine syspref in the DB if missing
Bug-11196-Add-SearchEngine-syspref-in-the-DB-if-mi.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2013-11-13 11:15:16 UTC
(
hide
)
Description:
Bug 11196: Add SearchEngine syspref in the DB if missing
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-11-13 11:15:16 UTC
Size:
1.13 KB
patch
obsolete
>From 9d07817b13cc491e52ccc55147cf6c331718818c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 13 Nov 2013 12:13:27 +0100 >Subject: [PATCH] Bug 11196: Add SearchEngine syspref in the DB if missing > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 6162bc5..242fe5c 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -7743,6 +7743,14 @@ if(CheckVersion($DBversion)) { > SetVersion($DBversion); > } > >+$DBversion = "3.15.00.XXX"; >+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice')"); >+ print "Upgrade to $DBversion done (Bug 11196: Add system preference SearchEngine if missing )\n"; >+ SetVersion($DBversion); >+} >+ >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >1.7.10.4
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 11196
:
22678
|
22858
|
22904
| 22905