[open-ils-commits] r18693 - in trunk/Open-ILS/src/sql/Pg: . upgrade (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 10 17:26:48 EST 2010
Author: dbs
Date: 2010-11-10 17:26:42 -0500 (Wed, 10 Nov 2010)
New Revision: 18693
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
Enable "maintain control numbers" and "record ID as TCN" behavior by default
Per http://ur1.ca/2bgc4, this behavior hews more closely to the MARC21
specification. Note, however, that duplicate bib detection in the
"Import via Z39.50" interface will be somewhat affected; a more
trustworthy workaround is to include the "Local catalog" in Z39.50 searches to
determine if a matching record already exists in the database.
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-11-10 21:57:27 UTC (rev 18692)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-11-10 22:26:42 UTC (rev 18693)
@@ -70,7 +70,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0462'); -- gmc
+INSERT INTO config.upgrade_log (version) VALUES ('0463'); -- dbs
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql 2010-11-10 21:57:27 UTC (rev 18692)
+++ trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql 2010-11-10 22:26:42 UTC (rev 18693)
@@ -15476,7 +15476,7 @@
) INHERITS (config.internal_flag);
ALTER TABLE config.global_flag ADD PRIMARY KEY (name);
-INSERT INTO config.global_flag (name, label) -- defaults to enabled=FALSE
+INSERT INTO config.global_flag (name, label, enabled)
VALUES (
'cat.bib.use_id_for_tcn',
oils_i18n_gettext(
@@ -15484,7 +15484,8 @@
'Cat: Use Internal ID for TCN Value',
'cgf',
'label'
- )
+ ),
+ TRUE
);
-- resolves performance issue noted by EG Indiana
@@ -16884,7 +16885,7 @@
ALTER TABLE authority.record_entry ADD COLUMN owner INT;
ALTER TABLE serial.record_entry ADD COLUMN owner INT;
-INSERT INTO config.global_flag (name, label) -- defaults to enabled=FALSE
+INSERT INTO config.global_flag (name, label, enabled)
VALUES (
'cat.maintain_control_numbers',
oils_i18n_gettext(
@@ -16892,7 +16893,8 @@
'Cat: Maintain 001/003/035 according to the MARC21 specification',
'cgf',
'label'
- )
+ ),
+ TRUE
);
INSERT INTO config.global_flag (name, label, enabled)
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-10 21:57:27 UTC (rev 18692)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-10 22:26:42 UTC (rev 18693)
@@ -6363,7 +6363,7 @@
)
);
-INSERT INTO config.global_flag (name, label) -- defaults to enabled=FALSE
+INSERT INTO config.global_flag (name, label, enabled)
VALUES (
'cat.bib.use_id_for_tcn',
oils_i18n_gettext(
@@ -6371,7 +6371,8 @@
'Cat: Use Internal ID for TCN Value',
'cgf',
'label'
- )
+ ),
+ TRUE
);
INSERT INTO config.global_flag (name,label,enabled)
@@ -6385,7 +6386,7 @@
TRUE
);
-INSERT INTO config.global_flag (name, label) -- defaults to enabled=FALSE
+INSERT INTO config.global_flag (name, label, enabled)
VALUES (
'cat.maintain_control_numbers',
oils_i18n_gettext(
@@ -6393,7 +6394,8 @@
'Cat: Maintain 001/003/035 according to the MARC21 specification',
'cgf',
'label'
- )
+ ),
+ TRUE
);
INSERT INTO config.usr_setting_type (name,opac_visible,label,description,datatype)
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql 2010-11-10 22:26:42 UTC (rev 18693)
@@ -0,0 +1,10 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0463'); -- dbs
+
+UPDATE config.global_flag
+ SET enabled = TRUE
+ WHERE name IN ('cat.bib.use_id_for_tcn', 'cat.maintain_control_numbers')
+;
+
+COMMIT;
More information about the open-ils-commits
mailing list