[open-ils-commits] r18694 - in branches/rel_2_0/Open-ILS/src/sql/Pg: . upgrade (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 10 17:31:18 EST 2010
Author: dbs
Date: 2010-11-10 17:31:12 -0500 (Wed, 10 Nov 2010)
New Revision: 18694
Added:
branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql
Modified:
branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql
branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
branches/rel_2_0/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: branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-11-10 22:26:42 UTC (rev 18693)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-11-10 22:31:12 UTC (rev 18694)
@@ -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: branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql 2010-11-10 22:26:42 UTC (rev 18693)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql 2010-11-10 22:31:12 UTC (rev 18694)
@@ -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: branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-10 22:26:42 UTC (rev 18693)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-10 22:31:12 UTC (rev 18694)
@@ -6917,7 +6917,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(
@@ -6925,7 +6925,8 @@
'Cat: Use Internal ID for TCN Value',
'cgf',
'label'
- )
+ ),
+ TRUE
);
INSERT INTO config.global_flag (name,label,enabled)
@@ -6939,7 +6940,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(
@@ -6947,7 +6948,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)
Copied: branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql (from rev 18693, trunk/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql)
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql (rev 0)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0463.config.enable_id_global_flags.sql 2010-11-10 22:31:12 UTC (rev 18694)
@@ -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