From 8e74348fac9c9dd9017d80ddd22e68a6683ee984 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 29 Dec 2011 13:46:24 -0500 Subject: [PATCH] SETVAL the permission.grp_tree sequence after adding pinned IDs If we do not update the associated sequence after adding pinned IDs, sites will be unable to add new permission groups until enough attempts have failed. Let's bypass that little bit of pain. Signed-off-by: Dan Scott Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql index 50fb17805c..e245c831c0 100644 --- a/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql @@ -5795,7 +5795,7 @@ INSERT INTO permission.grp_tree (id, name, parent, description, perm_interval, u id = 15 ); - +SELECT SETVAL('permission.grp_tree_id_seq'::TEXT, (SELECT MAX(id) FROM permission.grp_tree)); INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) SELECT -- 2.11.0