[open-ils-commits] r17484 - trunk/Open-ILS/src/sql/Pg (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 3 15:28:06 EDT 2010
Author: gmc
Date: 2010-09-03 15:28:01 -0400 (Fri, 03 Sep 2010)
New Revision: 17484
Modified:
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
give default OUs separate addresses
Per suggestion from Anoop Atre to avoid a new user
changing one OU address in a new database and wondering
why all of the OU addresses were changed.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-09-03 19:17:51 UTC (rev 17483)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-09-03 19:28:01 UTC (rev 17484)
@@ -955,9 +955,11 @@
(9, 6, 5, 'BM1', oils_i18n_gettext(9, 'Example Bookmobile 1', 'aou', 'name'));
SELECT SETVAL('actor.org_unit_id_seq'::TEXT, 100);
-INSERT INTO actor.org_address VALUES (DEFAULT,DEFAULT,DEFAULT,1,'123 Main St.',NULL,'Anywhere',NULL,'GA','US','30303');
+INSERT INTO actor.org_address (org_unit, street1, city, state, country, post_code)
+SELECT id, '123 Main St.', 'Anywhere', 'GA', 'US', '30303'
+FROM actor.org_unit;
-UPDATE actor.org_unit SET holds_address = 1, ill_address = 1, billing_address = 1, mailing_address = 1;
+UPDATE actor.org_unit SET holds_address = id, ill_address = id, billing_address = id, mailing_address = id;
INSERT INTO config.billing_type (id, name, owner) VALUES
( 1, oils_i18n_gettext(1, 'Overdue Materials', 'cbt', 'name'), 1);
More information about the open-ils-commits
mailing list