Bugzilla – Attachment 148526 Details for
Bug 8179
Receiving multiple order lines at once
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8179: Modernize atomic update
Bug-8179-Modernize-atomic-update.patch (text/plain), 2.32 KB, created by
ByWater Sandboxes
on 2023-03-22 12:28:50 UTC
(
hide
)
Description:
Bug 8179: Modernize atomic update
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2023-03-22 12:28:50 UTC
Size:
2.32 KB
patch
obsolete
>From b215a7b34d28acd9c19f1de5060ed821443d000d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 16 Mar 2023 15:33:39 -0300 >Subject: [PATCH] Bug 8179: Modernize atomic update > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> >--- > installer/data/mysql/atomicupdate/bug_8179.perl | 15 --------------- > installer/data/mysql/atomicupdate/bug_8179.pl | 17 +++++++++++++++++ > 2 files changed, 17 insertions(+), 15 deletions(-) > delete mode 100644 installer/data/mysql/atomicupdate/bug_8179.perl > create mode 100755 installer/data/mysql/atomicupdate/bug_8179.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_8179.perl b/installer/data/mysql/atomicupdate/bug_8179.perl >deleted file mode 100644 >index efd5000e10..0000000000 >--- a/installer/data/mysql/atomicupdate/bug_8179.perl >+++ /dev/null >@@ -1,15 +0,0 @@ >-$DBversion = 'XXX'; # will be replaced by the RM >-if( CheckVersion( $DBversion ) ) { >- # you can use $dbh here like: >- $dbh->do( qq{ >- INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >- ('AcqReceiveMultipleOrderLines', '0', NULL, 'Process multiple order lines at once', 'YesNo') >- }); >- # 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, 8179, "Add AcqReceiveMultipleOrderLines system preference"); >-} >diff --git a/installer/data/mysql/atomicupdate/bug_8179.pl b/installer/data/mysql/atomicupdate/bug_8179.pl >new file mode 100755 >index 0000000000..190f03c674 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_8179.pl >@@ -0,0 +1,17 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "8179", >+ description => "Acquisitions orders: multi-receive", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('AcqReceiveMultipleOrderLines', '0', NULL, 'Process multiple order lines at once', 'YesNo') >+ }); >+ >+ say $out "Added new system preference 'AcqReceiveMultipleOrderLines'"; >+ }, >+}; >-- >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 8179
:
9881
|
111437
|
111438
|
111439
|
111440
|
112554
|
112555
|
112556
|
112558
|
112588
|
112643
|
112644
|
112645
|
112646
|
112744
|
112745
|
112746
|
112747
|
114688
|
114689
|
114690
|
114691
|
116582
|
116583
|
116584
|
116585
|
116588
|
116589
|
116590
|
116591
|
116681
|
116682
|
116683
|
116684
|
116942
|
116943
|
116944
|
116945
|
119178
|
119179
|
119180
|
119181
|
120620
|
120621
|
120622
|
120623
|
148215
|
148216
|
148217
|
148218
|
148233
|
148284
|
148285
|
148286
|
148287
|
148288
|
148521
|
148522
|
148523
|
148524
|
148525
|
148526
|
148685
|
148981
|
148982
|
148983
|
148984
|
148985
|
148986
|
151026
|
151086
|
151087
|
151088
|
151089
|
151092
|
151093
|
151137
|
151138
|
151139
|
151140
|
151141
|
151142
|
151143
|
151144
|
151145
|
151163
|
151250
|
151367
|
151431