[open-ils-commits] r16475 - in trunk/Open-ILS: examples src/sql/Pg src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri May 21 12:32:03 EDT 2010
Author: scottmk
Date: 2010-05-21 12:32:00 -0400 (Fri, 21 May 2010)
New Revision: 16475
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
Log:
Add column avg_wait_time to config.circ_modifier.
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql
M Open-ILS/src/sql/Pg/100.circ_matrix.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-05-21 15:52:42 UTC (rev 16474)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-05-21 16:32:00 UTC (rev 16475)
@@ -869,6 +869,7 @@
<field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
<field reporter:label="SIP2 Media Type" name="sip2_media_type" reporter:datatype="text" oils_persist:i18n="true"/>
<field reporter:label="Magnetic Media" name="magnetic_media" reporter:datatype="bool"/>
+ <field reporter:label="Average Wait Time" name="avg_wait_time" reporter:datatype="interval"/>
</fields>
<links/>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-05-21 15:52:42 UTC (rev 16474)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-05-21 16:32:00 UTC (rev 16475)
@@ -65,7 +65,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0272'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0273'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql 2010-05-21 15:52:42 UTC (rev 16474)
+++ trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql 2010-05-21 16:32:00 UTC (rev 16475)
@@ -15,7 +15,8 @@
name TEXT UNIQUE NOT NULL,
description TEXT NOT NULL,
sip2_media_type TEXT NOT NULL,
- magnetic_media BOOL NOT NULL DEFAULT TRUE
+ magnetic_media BOOL NOT NULL DEFAULT TRUE,
+ avg_wait_time INTERVAL
);
/*
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql 2010-05-21 16:32:00 UTC (rev 16475)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0273'); -- Scott McKellar
+
+ALTER TABLE config.circ_modifier
+ ADD COLUMN avg_wait_time INTERVAL;
+
+COMMIT;
More information about the open-ils-commits
mailing list