required column for item stat cats
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Aug 2010 20:43:44 +0000 (20:43 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Aug 2010 20:43:44 +0000 (20:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17081 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/040.schema.asset.sql
Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql [new file with mode: 0644]

index 3ee30f5..fdb9773 100644 (file)
@@ -3787,6 +3787,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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"/>
index 4a79a63..55b5dee 100644 (file)
@@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log (
     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,
index 7a4d23e..23be45a 100644 (file)
@@ -127,6 +127,7 @@ CREATE TABLE asset.stat_cat (
        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)
 );
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql b/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql
new file mode 100644 (file)
index 0000000..15feb4b
--- /dev/null
@@ -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;
+