--- /dev/null
+-- Deploy kcls-evergreen:teacher-group to pg
+-- requires: student-groups
+
+BEGIN;
+
+DO $$
+BEGIN
+ IF evergreen.insert_on_deploy() THEN
+
+ INSERT INTO permission.grp_tree
+ (id, name, parent, usergroup, perm_interval) VALUES
+ (903, 'Teacher Ecard', 900, TRUE, '2 years');
+
+ -- hold matchpoints have to match the group exactly to overcome
+ -- conflicting match weights.
+ INSERT INTO config.hold_matrix_matchpoint (
+ active, usr_grp, requestor_grp, ref_flag, holdable,
+ distance_is_from_owner, include_frozen_holds, stop_blocked_user,
+ strict_ou_match
+ ) VALUES (TRUE, 903, 1, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE);
+
+ END IF; -- insert_on_deploy
+END $$;
+
+
+
+COMMIT;
--- /dev/null
+-- Revert kcls-evergreen:teacher-group from pg
+
+BEGIN;
+
+DO $$
+BEGIN
+ IF evergreen.insert_on_deploy() THEN
+
+ DELETE FROM config.hold_matrix_matchpoint WHERE usr_grp = 903;
+ DELETE FROM permission.grp_tree WHERE id = 903;
+
+ END IF; -- insert-on-deploy
+END $$;
+
+COMMIT;
sip-act-type-freegalsip [payflow-hosted-org-settings] 2016-08-19T20:24:01Z Bill Erickson <berickxx@gmail.com> # User activity type for freegalsip login
audit-table-maint [payflow-hosted-org-settings] 2016-07-22T14:49:08Z Bill Erickson <berickxx@gmail.com> # Audit table cleanup functions
payflow-hosted-static-silent-post-url [payflow-hosted-org-settings] 2016-08-17T13:14:48Z Bill Erickson <berickxx@gmail.com> # Fall back to PP silent post URL
+teacher-group [student-groups] 2016-09-16T17:43:41Z Bill Erickson <berickxx@gmail.com> # Teach ecard group and policy configs