[open-ils-commits] r13761 - branches/rel_1_6/Open-ILS/src/sql/Pg (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 28 14:20:34 EDT 2009
Author: phasefx
Date: 2009-07-28 14:20:30 -0400 (Tue, 28 Jul 2009)
New Revision: 13761
Modified:
branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
set the grp_perm_map sequence before inserting grp_perm_map rows. Thanks Dan!
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-07-28 18:17:17 UTC (rev 13760)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-07-28 18:20:30 UTC (rev 13761)
@@ -1519,6 +1519,7 @@
INSERT INTO permission.grp_perm_map VALUES (146, 4, 201, 1, false);
-- Add basic acquisitions permissions to the Acquisitions group
+SELECT SETVAL('permission.grp_perm_map_id_seq'::TEXT, (SELECT MAX(id) FROM permission.grp_perm_map));
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (6, (SELECT id FROM permission.perm_list WHERE code = 'GENERAL_ACQ'), 1, false);
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (6, (SELECT id FROM permission.perm_list WHERE code = 'VIEW_PICKLIST'), 1, false);
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (6, (SELECT id FROM permission.perm_list WHERE code = 'CREATE_PICKLIST'), 1, false);
@@ -1536,8 +1537,6 @@
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (7, (SELECT id FROM permission.perm_list WHERE code = 'ADMIN_FUND'), 1, false);
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) VALUES (7, (SELECT id FROM permission.perm_list WHERE code = 'ADMIN_CURRENCY_TYPE'), 1, false);
-SELECT SETVAL('permission.grp_perm_map_id_seq'::TEXT, (SELECT MAX(id) FROM permission.grp_perm_map));
-
-- 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', 'Administrator', 'System Account', '1979-01-22', TRUE, TRUE, 1, 'identification', 1 );
More information about the open-ils-commits
mailing list