Bugzilla – Attachment 81528 Details for
Bug 21682
Stock Rotation: Update DB is failing with strict_sql_modes ON
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21682: (follow-up) - DBUpdate for Dev installs
Bug-21682-follow-up---DBUpdate-for-Dev-installs.patch (text/plain), 1.07 KB, created by
Mark Tompsett
on 2018-10-29 17:15:00 UTC
(
hide
)
Description:
Bug 21682: (follow-up) - DBUpdate for Dev installs
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-10-29 17:15:00 UTC
Size:
1.07 KB
patch
obsolete
>From 224c7c47ddd14d596a6e3bb3cc03205e6af0cefe Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Sat, 27 Oct 2018 10:00:49 +0100 >Subject: [PATCH] Bug 21682: (follow-up) - DBUpdate for Dev installs > >https://bugs.koha-community.org/show_bug.cgi?id=21682 > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > installer/data/mysql/atomicupdate/bug_21682.perl | 7 +++++++ > 1 file changed, 7 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_21682.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_21682.perl b/installer/data/mysql/atomicupdate/bug_21682.perl >new file mode 100644 >index 0000000000..16eeb3d80b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_21682.perl >@@ -0,0 +1,7 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( "ALTER TABLE `stockrotationrotas` ALTER COLUMN `description` DROP DEFAULT" ); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 21682 - Remove default on stockrotationrotas.description )\n"; >+} >-- >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 21682
:
81280
|
81347
|
81348
|
81525
|
81526
|
81527
|
81528
|
81529
|
81769
|
81770
|
81787
|
81788
|
81815