[open-ils-commits] r18147 - in branches/rel_1_6/Open-ILS: examples src/perlmods/OpenILS/Application/Storage/CDBI src/sql/Pg src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 4 09:47:21 EDT 2010
Author: scottmk
Date: 2010-10-04 09:47:18 -0400 (Mon, 04 Oct 2010)
New Revision: 18147
Added:
branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0425.schema.perm-grp-tree-hold-priority.sql
Modified:
branches/rel_1_6/Open-ILS/examples/fm_IDL.xml
branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/permission.pm
branches/rel_1_6/Open-ILS/src/sql/Pg/006.schema.permissions.sql
Log:
Add hold_priority column to permission.grp_tree table.
For trunk and 1.6, and eventually for 1.6.2 and 2.1, but *not*
for 1.6.1 or 2.0.
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/src/perlmods/OpenILS/Application/Storage/CDBI/permission.pm
M Open-ILS/examples/fm_IDL.xml
Modified: branches/rel_1_6/Open-ILS/examples/fm_IDL.xml
===================================================================
--- branches/rel_1_6/Open-ILS/examples/fm_IDL.xml 2010-10-04 13:43:13 UTC (rev 18146)
+++ branches/rel_1_6/Open-ILS/examples/fm_IDL.xml 2010-10-04 13:47:18 UTC (rev 18147)
@@ -3515,6 +3515,7 @@
<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"/>
Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/permission.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/permission.pm 2010-10-04 13:43:13 UTC (rev 18146)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/permission.pm 2010-10-04 13:47:18 UTC (rev 18147)
@@ -16,7 +16,7 @@
__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/;
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/006.schema.permissions.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/006.schema.permissions.sql 2010-10-04 13:43:13 UTC (rev 18146)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/006.schema.permissions.sql 2010-10-04 13:47:18 UTC (rev 18147)
@@ -35,7 +35,8 @@
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);
Added: branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0425.schema.perm-grp-tree-hold-priority.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0425.schema.perm-grp-tree-hold-priority.sql (rev 0)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0425.schema.perm-grp-tree-hold-priority.sql 2010-10-04 13:47:18 UTC (rev 18147)
@@ -0,0 +1,8 @@
+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;
More information about the open-ils-commits
mailing list