Bugzilla – Attachment 37707 Details for
Bug 13889
Add information about cron jobs to system log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Follow-up]Bug 13889 Add syspref to sysprefs.sql and updatedatabase.pl
Follow-upBug-13889-Add-syspref-to-sysprefssql-and-.patch (text/plain), 2.19 KB, created by
Marc Véron
on 2015-04-12 14:03:12 UTC
(
hide
)
Description:
[Follow-up]Bug 13889 Add syspref to sysprefs.sql and updatedatabase.pl
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-04-12 14:03:12 UTC
Size:
2.19 KB
patch
obsolete
>From a6645c2b911d6b86f436edd12616a260e357e121 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Sun, 12 Apr 2015 15:59:51 +0200 >Subject: [PATCH] [Follow-up]Bug 13889 Add syspref to sysprefs.sql and > updatedatabase.pl > >This patch adds the syspref CronjobLog to sysprefs.sql and updatedatabase.pl >--- > installer/data/mysql/sysprefs.sql | 3 ++- > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 2 files changed, 10 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 1e07e3c..2569763 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -474,5 +474,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'), > ('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'), > ('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'), >-('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo') >+('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'), >+('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo') > ; >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 78e79d3..7de3156 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -9992,6 +9992,14 @@ while ( my $file = readdir $dirh ) { > my $rv = $installer->load_sql( $update_dir . $file ) ? 0 : 1; > } > >+$DBversion = 'XXX'; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo');"); >+ print "Upgrade to $DBversion done (Add CronjobLog syspref)\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 13889
:
37082
|
37325
|
37679
|
37707
|
37711
|
38116
|
38183
|
38227
|
38228
|
38229
|
38230
|
38236
|
38239
|
38283
|
38406
|
38407
|
38408
|
38409