Bug 30650: DB - Add policy.enable_waiting_holds_only

Sponsored-by: Association KohaLa - https://koha-fr.org/

Signed-off-by: Koha Team University Lyon 3 <koha@univ-lyon3.fr>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-10 08:18:02 +02:00 committed by Tomas Cohen Arazi
parent 00da3ec0a3
commit d01c0c7fa3
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 8 additions and 0 deletions

View file

@ -173,5 +173,12 @@ return {
VALUES
(3, 'manage_curbside_pickups', 'Manage curbside pickups')
});
unless ( column_exists('curbside_pickup_policy', 'enable_waiting_holds_only') ) {
$dbh->do(q{
ALTER table curbside_pickup_policy
ADD COLUMN enable_waiting_holds_only INT(1) NOT NULL DEFAULT 0 AFTER enabled
});
}
}
}

View file

@ -2333,6 +2333,7 @@ CREATE TABLE `curbside_pickup_policy` (
`id` int(11) NOT NULL auto_increment,
`branchcode` varchar(10) NOT NULL,
`enabled` TINYINT(1) NOT NULL DEFAULT 0,
`enable_waiting_holds_only` TINYINT(1) NOT NULL DEFAULT 0,
`pickup_interval` INT(2) NOT NULL DEFAULT 0,
`patrons_per_interval` INT(2) NOT NULL DEFAULT 0,
`patron_scheduled_pickup` TINYINT(1) NOT NULL DEFAULT 0,