Bug 33004: Add VENDOR_TYPE to default authorised value categories

To test:
* Go to administration > authorised values
* Verify that VENDOR_TYPE doesn't show in the list
* Apply patch
* Run database update
* Verify that VENDOR_TYPE does now appear and has a nice
  description (not added by this patch)
* Bonus: start over and run the web installer, VENDOR_TYPE
  should now be already there

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0f3a82f09c)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2023-02-18 11:01:54 +00:00 committed by Jacob O'Mara
parent 027ef7444a
commit 70dc8a3ebe
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,12 @@
use Modern::Perl;
return {
bug_number => "33004",
description => "Add VENDOR_TYPE authorised value category",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{INSERT IGNORE INTO authorised_value_categories (category_name, is_system) VALUES ('VENDOR_TYPE', 1)});
say $out "Added new authorised value category 'VENDOR_TYPE'";
},
};

View File

@ -19,7 +19,8 @@ INSERT IGNORE INTO authorised_value_categories( category_name, is_system )
('PA_CLASS', 0),
('HOLD_CANCELLATION', 0),
('ROADTYPE', 0),
('AR_CANCELLATION', 0);
('AR_CANCELLATION', 0),
('VENDOR_TYPE', 1);
INSERT IGNORE INTO authorised_value_categories( category_name, is_system )
VALUES