[open-ils-commits] r17081 - in trunk/Open-ILS: examples src/sql/Pg src/sql/Pg/upgrade (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 4 16:43:50 EDT 2010
Author: phasefx
Date: 2010-08-04 16:43:44 -0400 (Wed, 04 Aug 2010)
New Revision: 17081
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.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/040.schema.asset.sql
Log:
required column for item stat cats
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-08-04 20:36:10 UTC (rev 17080)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-08-04 20:43:44 UTC (rev 17081)
@@ -3787,6 +3787,7 @@
<field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
<field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
<field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Required" name="required" reporter:datatype="bool"/>
</fields>
<links>
<link field="owner" reltype="has_a" key="id" map="" class="aou"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-08-04 20:36:10 UTC (rev 17080)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-08-04 20:43:44 UTC (rev 17081)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0360'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0361'); -- phasefx
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql 2010-08-04 20:36:10 UTC (rev 17080)
+++ trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql 2010-08-04 20:43:44 UTC (rev 17081)
@@ -127,6 +127,7 @@
owner INT NOT NULL,
opac_visible BOOL NOT NULL DEFAULT FALSE,
name TEXT NOT NULL,
+ required BOOL NOT NULL DEFAULT FALSE,
CONSTRAINT sc_once_per_owner UNIQUE (owner,name)
);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql 2010-08-04 20:43:44 UTC (rev 17081)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0361'); -- phasefx
+
+ALTER TABLE asset.stat_cat ADD COLUMN required BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;
+
More information about the open-ils-commits
mailing list