Bugzilla – Attachment 112155 Details for
Bug 18595
Move C4::Members::Messaging to Koha namespace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18595: Validate days_in_advance
0009-Bug-18595-Validate-days_in_advance.patch (text/plain), 1.30 KB, created by
Emmi Takkinen
on 2020-10-22 08:19:18 UTC
(
hide
)
Description:
Bug 18595: Validate days_in_advance
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2020-10-22 08:19:18 UTC
Size:
1.30 KB
patch
obsolete
>From 021edd23d9c543bc8c7a6d63dbd1d512b19be07f Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Wed, 9 Oct 2019 09:43:05 +0000 >Subject: [PATCH 9/9] Bug 18595: Validate days_in_advance > >Rebased-by: Emmi Takkinen <emmi.takkinen@outlook.com> >--- > .../Bug-18595-1-Validate-days-in-advance.perl | 9 +++++++++ > 1 file changed, 9 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/Bug-18595-1-Validate-days-in-advance.perl > >diff --git a/installer/data/mysql/atomicupdate/Bug-18595-1-Validate-days-in-advance.perl b/installer/data/mysql/atomicupdate/Bug-18595-1-Validate-days-in-advance.perl >new file mode 100644 >index 0000000000..fb0726894c >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/Bug-18595-1-Validate-days-in-advance.perl >@@ -0,0 +1,9 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ $dbh->do("UPDATE borrower_message_preferences SET days_in_advance=NULL WHERE days_in_advance IS NOT NULL AND message_attribute_id IN (SELECT message_attribute_id FROM message_attributes WHERE takes_days=0)"); >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 18595-1 - Validate days_in_advance values in borrower_message_preferences table)\n"; >+} >-- >2.17.1 >
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 18595
:
63435
|
63436
|
63437
|
63438
|
63439
|
63440
|
63441
|
63794
|
63795
|
63796
|
63797
|
63798
|
63799
|
63800
|
63813
|
63815
|
63816
|
63817
|
63818
|
63819
|
63820
|
63821
|
63822
|
63823
|
63824
|
63825
|
63826
|
63827
|
63828
|
63829
|
69441
|
69442
|
69443
|
69444
|
69445
|
69446
|
69447
|
69448
|
69449
|
69450
|
69451
|
69452
|
69453
|
69667
|
69668
|
69669
|
69670
|
69671
|
69672
|
69673
|
69674
|
93873
|
93874
|
93875
|
93876
|
93877
|
93878
|
93879
|
93880
|
93908
|
94753
|
94754
|
103444
|
103445
|
103446
|
103447
|
103448
|
103449
|
103450
|
103451
|
103452
|
110151
|
110152
|
110153
|
110154
|
110155
|
110156
|
110157
|
110158
|
110159
|
112147
|
112148
|
112149
|
112150
|
112151
|
112152
|
112153
|
112154
|
112155
|
112690
|
113126
|
113192
|
113221
|
113222
|
113769
|
146541
|
146542
|
146543
|
146544
|
146545
|
146546
|
146547
|
146548
|
146549
|
146550
|
146551
|
146552