Bugzilla – Attachment 143740 Details for
Bug 9525
Add option to define float groups and rules for float
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9525: Add ft_local_float_group column
0001-Bug-9525-Add-ft_local_float_group-column.patch (text/plain), 2.53 KB, created by
Emmi Takkinen
on 2022-11-11 07:26:14 UTC
(
hide
)
Description:
Bug 9525: Add ft_local_float_group column
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2022-11-11 07:26:14 UTC
Size:
2.53 KB
patch
obsolete
>From c3fc12b8eb1507841b62d7f6d7d552035433532f Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Tue, 7 Sep 2021 09:33:44 +0300 >Subject: [PATCH 1/4] Bug 9525: Add ft_local_float_group column > >This patch adds new ft_local_float_group column >to library_groups table. > >To test: >1. Apply patch and update database >2. Confirm new column is added correctly to the >library_groups table > >Sponsored-by: Koha-Suomi Oy > >Signed-off-by: Lisette Scheer <lisettePalouse+Koha@gmail.com> >--- > .../Bug-9525-Add_ft_local_float_group_column.perl | 10 ++++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 11 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/Bug-9525-Add_ft_local_float_group_column.perl > >diff --git a/installer/data/mysql/atomicupdate/Bug-9525-Add_ft_local_float_group_column.perl b/installer/data/mysql/atomicupdate/Bug-9525-Add_ft_local_float_group_column.perl >new file mode 100644 >index 0000000000..a6b549ec7e >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/Bug-9525-Add_ft_local_float_group_column.perl >@@ -0,0 +1,10 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); >+ >+ $dbh->do("ALTER TABLE library_groups ADD COLUMN IF NOT EXISTS ft_local_float_group tinyint(1) NOT NULL DEFAULT 0 AFTER ft_local_hold_group"); >+ >+ # Always end with this (adjust the bug info) >+ NewVersion( $DBversion, 9525, "Add option to set group as local float group"); >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 7015a95ff3..8050d78920 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -3787,6 +3787,7 @@ CREATE TABLE `library_groups` ( > `ft_search_groups_opac` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group for staff side search groups', > `ft_search_groups_staff` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group for opac side search groups', > `ft_local_hold_group` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group to identify libraries as pick up location for holds', >+ `ft_local_float_group` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group to identify libraries as part of float group', > `created_on` timestamp NULL DEFAULT NULL COMMENT 'Date and time of creation', > `updated_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'Date and time of last', > PRIMARY KEY (`id`), >-- >2.34.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 9525
:
40077
|
40102
|
40103
|
44754
|
44756
|
44760
|
48310
|
100420
|
100421
|
100422
|
100741
|
100742
|
100743
|
103828
|
103829
|
103830
|
103831
|
112550
|
112551
|
112552
|
112553
|
124825
|
124826
|
124827
|
133071
|
133072
|
133073
|
139024
|
139025
|
139026
|
143740
|
143741
|
143742
|
143743
|
150241
|
150242
|
150243
|
150244
|
150245
|
150246
|
156330
|
156331
|
156332
|
156333
|
156334
|
156335
|
156336