Add column avg_wait_time to config.circ_modifier.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 May 2010 16:32:00 +0000 (16:32 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 May 2010 16:32:00 +0000 (16:32 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16475 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/100.circ_matrix.sql
Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql [new file with mode: 0644]

index c106582..9501ad9 100644 (file)
@@ -869,6 +869,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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">
index 2f0a5de..d1db535 100644 (file)
@@ -65,7 +65,7 @@ CREATE TABLE config.upgrade_log (
     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,
index 55dabe1..e3ed07f 100644 (file)
@@ -15,7 +15,8 @@ CREATE TABLE config.circ_modifier (
     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
 );
 
 /*
diff --git a/Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql b/Open-ILS/src/sql/Pg/upgrade/0273.schema.config-circ-mod-avg-wait.sql
new file mode 100644 (file)
index 0000000..0ad8ccb
--- /dev/null
@@ -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;