adding holdable flag to config.copy_status
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Jun 2005 19:09:04 +0000 (19:09 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Jun 2005 19:09:04 +0000 (19:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@973 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/config.pm
Open-ILS/src/sql/Postgres/002.schema.config.sql

index 179e3fe..f80a088 100644 (file)
@@ -66,7 +66,7 @@ package config::copy_status;
 use base qw/config/;
 __PACKAGE__->table('config_copy_status');
 __PACKAGE__->columns(Primary => 'id');
-__PACKAGE__->columns(Essential => qw/name/);
+__PACKAGE__->columns(Essential => qw/name holdable/);
 #-------------------------------------------------------------------------------
 
 package config::net_access_level;
index 652ee06..ad99586 100644 (file)
@@ -86,19 +86,20 @@ CREATE TABLE config.rule_age_hold_protect (
 );
 
 CREATE TABLE config.copy_status (
-       id      SERIAL          PRIMARY KEY,
-       name    TEXT            NOT NULL UNIQUE
+       id              SERIAL  PRIMARY KEY,
+       name            TEXT    NOT NULL UNIQUE,
+       holdable        BOOL    NOT NULL DEFAULT 'F'
 );
-INSERT INTO config.copy_status (id,name) VALUES (0,'Available');
-INSERT INTO config.copy_status (name) VALUES ('Checked out');
+INSERT INTO config.copy_status (id,name,holdable) VALUES (0,'Available','t');
+INSERT INTO config.copy_status (name,holdable) VALUES ('Checked out','t');
 INSERT INTO config.copy_status (name) VALUES ('Bindery');
 INSERT INTO config.copy_status (name) VALUES ('Lost');
 INSERT INTO config.copy_status (name) VALUES ('Missing');
-INSERT INTO config.copy_status (name) VALUES ('In process');
+INSERT INTO config.copy_status (name,holdable) VALUES ('In process','t');
 INSERT INTO config.copy_status (name) VALUES ('In transit');
-INSERT INTO config.copy_status (name) VALUES ('Reshelving');
+INSERT INTO config.copy_status (name,holdable) VALUES ('Reshelving','t');
 INSERT INTO config.copy_status (name) VALUES ('On holds shelf');
-INSERT INTO config.copy_status (name) VALUES ('On order');
+INSERT INTO config.copy_status (name,holdable) VALUES ('On order','t');
 INSERT INTO config.copy_status (name) VALUES ('ILL');
 INSERT INTO config.copy_status (name) VALUES ('Cataloging');
 INSERT INTO config.copy_status (name) VALUES ('Reserves');