Bugzilla – Attachment 121505 Details for
Bug 27948
Add disclaimer text to article requests feature
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27948: Add atomic update
Bug-27948-Add-atomic-update.patch (text/plain), 1.37 KB, created by
David Nind
on 2021-05-29 02:32:39 UTC
(
hide
)
Description:
Bug 27948: Add atomic update
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-05-29 02:32:39 UTC
Size:
1.37 KB
patch
obsolete
>From 77bdccce0b62947283beec10dc728e440bc27114 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Wed, 26 May 2021 15:59:00 -0300 >Subject: [PATCH] Bug 27948: Add atomic update > >Signed-off-by: David Nind <david@davidnind.com> >--- > installer/data/mysql/atomicupdate/bug_27948.perl | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_27948.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_27948.perl b/installer/data/mysql/atomicupdate/bug_27948.perl >new file mode 100644 >index 0000000000..d5c6b804f9 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_27948.perl >@@ -0,0 +1,16 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ $dbh->do( q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('ArticleRequestsDisclaimerText', '', NULL,'Enter text to enable the disclaimer stage of article request creation. Text will be displayed','Textarea') >+ } ); >+ >+ # or perform some test and warn >+ # if( !column_exists( 'biblio', 'biblionumber' ) ) { >+ # warn "There is something wrong"; >+ # } >+ >+ # Always end with this (adjust the bug info) >+ NewVersion( $DBversion, 27948, "Add ArticleRequestsDisclaimerText system preference"); >+} >-- >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 27948
:
121439
|
121440
|
121441
|
121505
|
121506
|
121507
|
122053
|
122132
|
122134
|
122519
|
122520
|
122523
|
122524
|
122525
|
122526
|
122771
|
122774
|
122795