M Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/permission.pm
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0425.schema.perm-grp-tree-hold-priority.sql
M Open-ILS/src/sql/Pg/006.schema.permissions.sql
M Open-ILS/examples/fm_IDL.xml
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18146
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<field reporter:label="User Expiration Interval" name="perm_interval" reporter:datatype="interval"/>
<field reporter:label="Required Permission" name="application_perm" reporter:datatype="text"/>
<field reporter:label="Is User Group" name="usergroup" reporter:datatype="bool"/>
+ <field reporter:label="Hold Priority" name="hold_priority" reporter:datatype="int"/>
</fields>
<links>
<link field="parent" reltype="has_a" key="id" map="" class="pgt"/>
__PACKAGE__->table('permission_grp_tree');
__PACKAGE__->columns(Primary => qw/id/);
__PACKAGE__->columns(Essential => qw/name parent description perm_interval
- application_perm usergroup/);
+ application_perm usergroup hold_priority/);
#-------------------------------------------------------------------------------
package permission::usr_grp_map;
use base qw/permission/;
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0424'); -- dbs
+INSERT INTO config.upgrade_log (version) VALUES ('0425'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
usergroup BOOL NOT NULL DEFAULT TRUE,
perm_interval INTERVAL DEFAULT '3 years'::interval NOT NULL,
description TEXT,
- application_perm TEXT
+ application_perm TEXT,
+ hold_priority INT NOT NULL DEFAULT 0
);
CREATE INDEX grp_tree_parent_idx ON permission.grp_tree (parent);
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0425'); -- Scott McKellar
+
+ALTER TABLE permission.grp_tree
+ ADD COLUMN hold_priority INT NOT NULL DEFAULT 0;
+
+COMMIT;