Reorder to satisfy FK constraints.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 4 Dec 2007 16:56:30 +0000 (16:56 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 4 Dec 2007 16:56:30 +0000 (16:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8138 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/950.data.seed-values.sql

index 8525982..3406dfa 100644 (file)
@@ -633,11 +633,6 @@ INSERT INTO config.item_type_map (code, value) VALUES
 
 --005.schema.actors.sql:
 
--- Just so that there is a user...
-INSERT INTO actor.usr ( profile, card, usrname, passwd, first_given_name, family_name, dob, master_account, super_user, ident_type, ident_value, home_ou ) VALUES ( 1, 1, 'admin', 'open-ils', oils_i18n_gettext('Administrator'), oils_i18n_gettext('System Account'), '1979-01-22', TRUE, TRUE, 1, 'identification', 1 );
-
-INSERT INTO actor.card (usr, barcode) VALUES (1,'101010101010101');
-
 -- The PINES levels
 INSERT INTO actor.org_unit_type (name, opac_label, depth, parent, can_have_users, can_have_vols) VALUES 
     ( oils_i18n_gettext('Consortium'),oils_i18n_gettext('Everywhere'), 0, NULL, FALSE, FALSE ),
@@ -662,6 +657,12 @@ INSERT INTO actor.org_address VALUES (DEFAULT,DEFAULT,DEFAULT,1,oils_i18n_gettex
 
 UPDATE actor.org_unit SET holds_address = 1, ill_address = 1, billing_address = 1, mailing_address = 1;
 
+-- Just so that there is a user...
+INSERT INTO actor.usr ( profile, card, usrname, passwd, first_given_name, family_name, dob, master_account, super_user, ident_type, ident_value, home_ou ) VALUES ( 1, 1, 'admin', 'open-ils', oils_i18n_gettext('Administrator'), oils_i18n_gettext('System Account'), '1979-01-22', TRUE, TRUE, 1, 'identification', 1 );
+
+INSERT INTO actor.card (usr, barcode) VALUES (1,'101010101010101');
+
+
 --006.data.permissions.sql:
 INSERT INTO permission.perm_list VALUES 
     (-1, 'EVERYTHING', NULL),