Bugzilla – Attachment 119985 Details for
Bug 23207
Allow automatic checkin/return at end of circulation period
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23207: (QA follow-up) Add COMMENT to new column
Bug-23207-QA-follow-up-Add-COMMENT-to-new-column.patch (text/plain), 2.40 KB, created by
Jonathan Druart
on 2021-04-22 08:32:14 UTC
(
hide
)
Description:
Bug 23207: (QA follow-up) Add COMMENT to new column
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-22 08:32:14 UTC
Size:
2.40 KB
patch
obsolete
>From ba5dde4a04d951b7a4b51387b35738dec2fcffe0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 21 Apr 2021 16:17:25 -0300 >Subject: [PATCH] Bug 23207: (QA follow-up) Add COMMENT to new column > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >JD amended patch: FIX syntax error.(swap COMMENT and AFTER) >--- > installer/data/mysql/atomicupdate/bug_23027.perl | 7 ++++--- > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 5 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_23027.perl b/installer/data/mysql/atomicupdate/bug_23027.perl >index 5e7a57894c..4494ae6850 100644 >--- a/installer/data/mysql/atomicupdate/bug_23027.perl >+++ b/installer/data/mysql/atomicupdate/bug_23027.perl >@@ -1,9 +1,10 @@ > $DBversion = 'XXX'; # will be replaced by the RM > if( CheckVersion( $DBversion ) ) { > if( !column_exists( 'itemtypes', 'automatic_checkin' ) ) { >- $dbh->do(q{ >- ALTER TABLE itemtypes ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 AFTER `searchcategory` -- 1 if automatic checkin is enabled for items of this type >- }); >+ $dbh->do(q{ >+ ALTER TABLE itemtypes >+ ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type' AFTER `searchcategory` >+ }); > } > > # Always end with this (adjust the bug info) >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 06e16e0591..18fe28cd8e 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -3133,7 +3133,7 @@ CREATE TABLE `itemtypes` ( > `sip_media_type` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'SIP2 protocol media type for this itemtype', > `hideinopac` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Hide the item type from the search options in OPAC', > `searchcategory` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Group this item type with others with the same value on OPAC search options', >- `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0, -- 1 if automatic checkin is enabled for items of this type >+ `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type', > PRIMARY KEY (`itemtype`), > UNIQUE KEY `itemtype` (`itemtype`), > KEY `itemtypes_ibfk_1` (`parent_type`), >-- >2.20.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 23207
:
114212
|
114213
|
114214
|
114215
|
117970
|
117971
|
117972
|
117973
|
117984
|
117985
|
117986
|
117987
|
117991
|
117992
|
117993
|
117994
|
119726
|
119727
|
119728
|
119729
|
119730
|
119966
|
119967
|
119973
| 119985 |
119999
|
120000