Bugzilla – Attachment 133815 Details for
Bug 28138
Add system preference to make the payment type required
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28138: (follow-up) New atomic update
Bug-28138-follow-up-New-atomic-update.patch (text/plain), 2.14 KB, created by
Katrin Fischer
on 2022-04-25 16:05:36 UTC
(
hide
)
Description:
Bug 28138: (follow-up) New atomic update
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-04-25 16:05:36 UTC
Size:
2.14 KB
patch
obsolete
>From 2d517ad23342183a8209b3e607bab18469df22ad Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 11 Mar 2022 13:06:45 -1000 >Subject: [PATCH] Bug 28138: (follow-up) New atomic update > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../add-system-preference-RequirePaymentType.perl | 9 --------- > installer/data/mysql/atomicupdate/bug_28138.pl | 15 +++++++++++++++ > 2 files changed, 15 insertions(+), 9 deletions(-) > delete mode 100644 installer/data/mysql/atomicupdate/add-system-preference-RequirePaymentType.perl > create mode 100755 installer/data/mysql/atomicupdate/bug_28138.pl > >diff --git a/installer/data/mysql/atomicupdate/add-system-preference-RequirePaymentType.perl b/installer/data/mysql/atomicupdate/add-system-preference-RequirePaymentType.perl >deleted file mode 100644 >index 5ba51c1a38..0000000000 >--- a/installer/data/mysql/atomicupdate/add-system-preference-RequirePaymentType.perl >+++ /dev/null >@@ -1,9 +0,0 @@ >-$DBversion = 'XXX'; >-if ( CheckVersion($DBversion) ) { >- $dbh->do(q{ >- INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) >- VALUES ('RequirePaymentType','0','','Require staff to select a payment type when a payment is made','YesNo') >- }); >- >- NewVersion( $DBversion, '28138', 'Add system preference RequirePaymentType'); >-} >diff --git a/installer/data/mysql/atomicupdate/bug_28138.pl b/installer/data/mysql/atomicupdate/bug_28138.pl >new file mode 100755 >index 0000000000..94f95a02b2 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_28138.pl >@@ -0,0 +1,15 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "28138", >+ description => "Add system preference RequirePaymentType", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Do you stuffs here >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) >+ VALUES ('RequirePaymentType','0','','Require staff to select a payment type when a payment is made','YesNo') >+ }); >+ }, >+}; >-- >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 28138
:
119507
|
119509
|
128166
|
131530
|
131643
|
133606
|
133609
|
133610
|
133611
|
133814
| 133815 |
133816
|
133817
|
133821