3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
5 CREATE TABLE asset.course_module_course (
8 course_number TEXT NOT NULL,
10 owning_lib INT REFERENCES actor.org_unit (id),
11 is_archived BOOLEAN NOT NULL DEFAULT false;
14 CREATE TABLE asset.course_module_course_users (
15 id SERIAL PRIMARY KEY,
16 course INT NOT NULL REFERENCES asset.course_module_course (id),
17 usr INT NOT NULL REFERENCES actor.usr (id),
21 CREATE TABLE asset.course_module_course_materials (
22 id SERIAL PRIMARY KEY,
23 course INT NOT NULL REFERENCES asset.course_module_course (id),
24 item INT NOT NULL REFERENCES asset.copy (id),
26 record INT REFERENCES biblio.record_entry (id),
27 original_location INT REFERENCES asset.copy_location,
28 original_status INT REFERENCES config.copy_status,
29 original_circ_modifier TEXT, --REFERENCES config.circ_modifier,
30 original_callnumber INT REFERENCES asset.call_number,
34 CREATE TABLE asset.course_module_non_cat_course_materials (
35 id SERIAL PRIMARY KEY,
36 course INT NOT NULL REFERENCES asset.course_module_course (id),
42 INSERT INTO permission.perm_list(id, code, description)
48 'Allows user to manage Courses, Course Materials, and associate Users with Courses.',
54 INSERT INTO permission.grp_perm_map(perm, grp, depth) VALUES (624, 9, 0), (624, 11, 0), (624, 12, 0), (624, 13, 0);
56 INSERT INTO config.org_unit_setting_type
57 (grp, name, datatype, label, description)
60 'circ.course_materials_opt_in', 'bool',
62 'circ.course_materials_opt_in',
63 'Opt Org Unit into the Course Materials Module',
68 'circ.course_materials_opt_in',
69 'If enabled, the Org Unit will utilize Course Material functionality.'