]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/tests/datasets/sql/load_all.sql
feeae28266da39d8d4cbb2436bf40ef8fab24750
[working/Evergreen.git] / Open-ILS / tests / datasets / sql / load_all.sql
1 BEGIN;
2
3 -- stop on error
4 \set ON_ERROR_STOP on
5
6 -- build functions, tables
7 \i env_create.sql
8
9 -- load concerto authorities
10 \i auth_concerto.sql
11
12 -- load concerto bibs
13 \i bibs_concerto.sql
14
15 -- load french bibs
16 \i bibs_fre.sql 
17
18 -- load map bibs
19 \i bibs_maps.sql 
20
21 -- load graphic 880 field bibs
22 \i bibs_graphic_880.sql 
23
24 -- insert all loaded bibs into the biblio.record_entry in insert order
25 INSERT INTO biblio.record_entry (marc, last_xact_id) 
26     SELECT marc, tag FROM marcxml_import ORDER BY id;
27
28 -- load concerto copies, etc.
29 \i assets_concerto.sql
30
31 -- load french copies, etc.
32 \i assets_fre.sql
33
34 -- load graphic 880 field copies, etc
35 \i assets_graphic_880.sql 
36
37 -- load sample patrons
38 \i users_patrons_100.sql
39
40 -- load sample staff users
41 \i users_staff_134.sql
42
43 -- circs, etc.
44 \i transactions.sql
45
46 -- clean up the env
47 \i env_destroy.sql
48
49 COMMIT;