[open-ils-commits] r8471 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 22 22:43:34 EST 2008
Author: dbs
Date: 2008-01-22 22:17:07 -0500 (Tue, 22 Jan 2008)
New Revision: 8471
Modified:
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
Reorder admin user insert statements to satisfy foreign key dependencies
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2008-01-22 21:18:07 UTC (rev 8470)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2008-01-23 03:17:07 UTC (rev 8471)
@@ -657,12 +657,6 @@
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),
@@ -934,7 +928,13 @@
(133, 5, 102, 0, false),
(138, 5, 104, 1, false);
--- Admin user
+-- Admin user account
+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 );
+
+-- Admin user barcode
+INSERT INTO actor.card (usr, barcode) VALUES (1,'101010101010101');
+
+-- Admin user permissions
INSERT INTO permission.usr_perm_map (usr,perm,depth) VALUES (1,-1,0);
--010.schema.biblio.sql:
More information about the open-ils-commits
mailing list