]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/tests/datasets/sql/libraries.sql
Move default actor.org_unit entries into sample data
[working/Evergreen.git] / Open-ILS / tests / datasets / sql / libraries.sql
1 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
2     (2, 1, 2, 'SYS1', oils_i18n_gettext(2, 'Example System 1', 'aou', 'name'));
3 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
4     (3, 1, 2, 'SYS2', oils_i18n_gettext(3, 'Example System 2', 'aou', 'name'));
5 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
6     (4, 2, 3, 'BR1', oils_i18n_gettext(4, 'Example Branch 1', 'aou', 'name'));
7 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
8     (5, 2, 3, 'BR2', oils_i18n_gettext(5, 'Example Branch 2', 'aou', 'name'));
9 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
10     (6, 3, 3, 'BR3', oils_i18n_gettext(6, 'Example Branch 3', 'aou', 'name'));
11 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
12     (7, 3, 3, 'BR4', oils_i18n_gettext(7, 'Example Branch 4', 'aou', 'name'));
13 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
14     (8, 4, 4, 'SL1', oils_i18n_gettext(8, 'Example Sub-library 1', 'aou', 'name'));
15 INSERT INTO actor.org_unit (id, parent_ou, ou_type, shortname, name) VALUES 
16     (9, 6, 5, 'BM1', oils_i18n_gettext(9, 'Example Bookmobile 1', 'aou', 'name'));
17
18 INSERT INTO actor.org_address (org_unit, street1, city, state, country, post_code)
19 SELECT id, '123 Main St.', 'Anywhere', 'GA', 'US', '30303'
20 FROM actor.org_unit;
21
22 UPDATE actor.org_unit SET holds_address = id, ill_address = id, billing_address = id, mailing_address = id;
23
24