Bugzilla – Attachment 131816 Details for
Bug 25560
Define itemtype specific rules in the UpdateNotForLoanStatusOnCheckin system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25560: Database and installer changes
Bug-25560-Database-and-installer-changes.patch (text/plain), 2.52 KB, created by
Alex Buckley
on 2022-03-16 23:55:38 UTC
(
hide
)
Description:
Bug 25560: Database and installer changes
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2022-03-16 23:55:38 UTC
Size:
2.52 KB
patch
obsolete
>From 489b36e57d97f4c49700c7007b6117498ccc9677 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Thu, 21 May 2020 23:19:23 +0000 >Subject: [PATCH] Bug 25560: Database and installer changes > >-- Adds boolean flag itemtypes.updatenotforloan > >Sponsored-By: Waikato Institute of Technology, NZ > >Signed-off-by: David Nind <david@davidnind.com> >--- > ...ug_25560-add_updatenotforloan_to_itemtypes.pl | 16 ++++++++++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 17 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_25560-add_updatenotforloan_to_itemtypes.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_25560-add_updatenotforloan_to_itemtypes.pl b/installer/data/mysql/atomicupdate/bug_25560-add_updatenotforloan_to_itemtypes.pl >new file mode 100755 >index 0000000000..e551d021bc >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_25560-add_updatenotforloan_to_itemtypes.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "25560", >+ description => "Adding new column 'itemtypes.updatenotforloan'", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ if( !column_exists( 'itemtypes', 'updatenotforloan' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE itemtypes ADD COLUMN `updatenotforloan` TINYINT(1) NOT NULL DEFAULT 1 AFTER `hideinopac` >+ }); >+ } >+ }, >+}; >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index ab2c3c7a66..f3f1bad5f3 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -3163,6 +3163,7 @@ CREATE TABLE `itemtypes` ( > `checkinmsgtype` char(16) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'message' COMMENT 'type (CSS class) for the checkinmsg, can be ''alert'' or ''message''', > `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', >+ `updatenotforloan` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Enable this item type to be altered by the UpdateNotForLoanStatusOnCheckin system preference', > `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 COMMENT 'If automatic checkin is enabled for items of this type', > PRIMARY KEY (`itemtype`), >-- >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 25560
:
105236
|
105237
|
105238
|
105239
|
105240
|
105241
|
105242
|
105243
|
105244
|
105245
|
109562
|
109563
|
109564
|
109565
|
109566
|
109567
|
112492
|
112887
|
113161
|
113212
|
113213
|
113214
|
113215
|
113216
|
113217
|
131816
|
131817
|
131818
|
131819
|
131820
|
135742
|
135743
|
136079
|
136080
|
136081
|
136082
|
136083
|
136084
|
138494
|
138495
|
138496
|
138497
|
138498
|
138499
|
146556
|
146557
|
146558
|
146559
|
146993
|
148679
|
148680
|
148681
|
148682
|
148683