]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/tests/datasets/sql/load_all.sql
Test data: avoid crazy transactions for expired patrons
[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 bibs
10 \i bibs_concerto.sql
11
12 -- load french bibs
13 \i bibs_fre.sql 
14
15 -- load map bibs
16 \i bibs_maps.sql 
17
18 -- insert all loaded bibs into the biblio.record_entry in insert order
19 INSERT INTO biblio.record_entry (marc, last_xact_id) 
20     SELECT marc, tag FROM marcxml_import ORDER BY id;
21
22 -- load concerto copies, etc.
23 \i assets_concerto.sql
24
25 -- load french copies, etc.
26 \i assets_fre.sql
27
28 -- load sample patrons
29 \i users_patrons_100.sql
30
31 -- load sample staff users
32 \i users_staff_134.sql
33
34 -- circs, etc.
35 \i transactions.sql
36
37 -- clean up the env
38 \i env_destroy.sql
39
40 COMMIT;