LP1849212: add sample data for course materials module
authorJane Sandberg <sandbej@linnbenton.edu>
Mon, 20 Jul 2020 04:23:06 +0000 (21:23 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 14 Sep 2020 22:17:09 +0000 (18:17 -0400)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/tests/datasets/sql/course_materials.sql [new file with mode: 0644]
Open-ILS/tests/datasets/sql/load_all.sql

diff --git a/Open-ILS/tests/datasets/sql/course_materials.sql b/Open-ILS/tests/datasets/sql/course_materials.sql
new file mode 100644 (file)
index 0000000..271802f
--- /dev/null
@@ -0,0 +1,12 @@
+-- Create courses
+INSERT INTO asset.course_module_course
+(name, course_number, owning_lib) VALUES
+('History of Indonesia', 'HST243', 1);
+
+
+-- Associate materials with the courses
+INSERT INTO asset.course_module_course_materials
+(course, record, relationship) VALUES
+(1, 200, 'Required'),
+(1, 201, 'Optional');
+
index 128372e..2388fc3 100644 (file)
@@ -102,6 +102,9 @@ INSERT INTO biblio.record_entry (marc, last_xact_id)
 -- load remoteauth data
 \i remoteauth.sql
 
+-- load course materials data
+\i course_materials.sql
+
 -- clean up the env
 \i env_destroy.sql