From 5603bffe0b2eb208a7b9e948a0441278cacaefb1 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 4 Aug 2010 20:43:44 +0000 Subject: [PATCH] required column for item stat cats git-svn-id: svn://svn.open-ils.org/ILS/trunk@17081 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/fm_IDL.xml | 1 + Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/040.schema.asset.sql | 1 + .../src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql | 8 ++++++++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 3ee30f52f..fdb97736c 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -3787,6 +3787,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 4a79a63a8..55b5deec3 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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, diff --git a/Open-ILS/src/sql/Pg/040.schema.asset.sql b/Open-ILS/src/sql/Pg/040.schema.asset.sql index 7a4d23e67..23be45af2 100644 --- a/Open-ILS/src/sql/Pg/040.schema.asset.sql +++ b/Open-ILS/src/sql/Pg/040.schema.asset.sql @@ -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 index 000000000..15feb4b99 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0361.schema.asset.stat_cat.required.sql @@ -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; + -- 2.11.0