Koha/installer/data/mysql/mandatory/auth_val_cat.sql
Andrew Isherwood e631207eaa Bug 20581: Modifications to database schema
- This patch provides an illrequests.status_alias column that is a foreign key to
authorised_values.id. This provides the ability for an ILL request to
have an optional status alias that is defined as an authorised valued.
- A new ILLSTATUS authorised value category is also made available during install.

Signed-off-by: Niamh.Walker-Headon@it-tallaght.ie

Following commit was squashed into this one:

Bug 20581: (follow-up) Modify DB updgrade

As per
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20581#c56

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-02-22 14:31:31 +00:00

64 lines
1.3 KiB
SQL

INSERT IGNORE INTO authorised_value_categories( category_name )
VALUES
(''),
('Asort1'),
('Asort2'),
('Bsort1'),
('Bsort2'),
('SUGGEST'),
('SUGGEST_STATUS'),
('SUGGEST_FORMAT'),
('DAMAGED'),
('LOST'),
('REPORT_GROUP'),
('REPORT_SUBGROUP'),
('DEPARTMENT'),
('TERM'),
('ITEMTYPECAT'),
('PAYMENT_TYPE'),
('PA_CLASS'),
('ROADTYPE');
INSERT IGNORE INTO authorised_value_categories( category_name )
VALUES
('branches'),
('itemtypes'),
('cn_source');
INSERT IGNORE INTO authorised_value_categories( category_name )
VALUES
('WITHDRAWN'),
('RESTRICTED'),
('NOT_LOAN'),
('CCODE'),
('LOC'),
('MANUAL_INV'),
('BOR_NOTES'),
('OPAC_SUG'),
('SIP_MEDIA_TYPE'),
('ORDER_CANCELLATION_REASON'),
('RELTERMS'),
('YES_NO'),
('LANG'),
('HINGS_UT'),
('HINGS_PF'),
('HINGS_C'),
('HINGS_AS'),
('HINGS_RD'),
('STACK'),
('CONTROL_NUM_SEQUENCE');
-- UNIMARC specific?
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES
('ETAT'),
('CAND'),
('COUNTRY'),
('qualif');
-- For Housebound
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES
('HSBND_FREQ');
-- For Interlibrary loans
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES
('ILLSTATUS');