Bugzilla – Attachment 81770 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: Add update DB entry for existing installs
Bug-21682-Add-update-DB-entry-for-existing-install.patch (text/plain), 1.05 KB, created by
Jonathan Druart
on 2018-10-31 18:48:59 UTC
(
hide
)
Description:
Bug 21682: Add update DB entry for existing installs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-10-31 18:48:59 UTC
Size:
1.05 KB
patch
obsolete
>From c1fb32784f4844c2996de66c4c4ba9360e36d6d2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 31 Oct 2018 15:36:21 -0300 >Subject: [PATCH] Bug 21682: Add update DB entry for existing installs > >--- > installer/data/mysql/atomicupdate/bug_21620.perl | 9 +++++++++ > 1 file changed, 9 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_21620.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_21620.perl b/installer/data/mysql/atomicupdate/bug_21620.perl >new file mode 100644 >index 0000000000..9634be5913 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_21620.perl >@@ -0,0 +1,9 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ $dbh->do( "ALTER TABLE stockrotationrotas CHANGE COLUMN description description text" ); >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 21620 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