Bugzilla – Attachment 148162 Details for
Bug 32057
Add optional stack trace to action logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32057: (follow-up) Add INSERT IGNORE in dbrev
Bug-32057-follow-up-Add-INSERT-IGNORE-in-dbrev.patch (text/plain), 1.29 KB, created by
Marcel de Rooy
on 2023-03-14 12:32:51 UTC
(
hide
)
Description:
Bug 32057: (follow-up) Add INSERT IGNORE in dbrev
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-03-14 12:32:51 UTC
Size:
1.29 KB
patch
obsolete
>From 5240cfe437e1c7b96b48a8424e82b1ab764eb015 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 14 Mar 2023 12:30:32 +0000 >Subject: [PATCH] Bug 32057: (follow-up) Add INSERT IGNORE in dbrev >Content-Type: text/plain; charset=utf-8 > >Preventing: >ERROR - {UNKNOWN}: DBI Exception: DBD::mysql::db do failed: Duplicate entry 'ActionLogsTraceDepth' for key 'PRIMARY' at /usr/share/koha/C4/Installer.pm line 739 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/db_revs/221200013.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/db_revs/221200013.pl b/installer/data/mysql/db_revs/221200013.pl >index a0cc9a73a9..c4c642f7b2 100755 >--- a/installer/data/mysql/db_revs/221200013.pl >+++ b/installer/data/mysql/db_revs/221200013.pl >@@ -16,7 +16,7 @@ return { > } > > $dbh->do(q{ >- INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES > ('ActionLogsTraceDepth', '0', '', 'Sets the maximum depth of the action logs stack trace', 'Integer') > }); > say $out "Added new system preference 'ActionLogsTraceDepth'"; >-- >2.30.2
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 32057
:
142855
|
142857
|
144734
|
144735
|
144736
|
144737
|
144738
|
144769
|
144786
|
144787
|
144788
|
147152
|
147153
|
147154
|
147155
|
147156
| 148162