BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0770', :eg_version); -- mrpeters/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0771', :eg_version); -- berick/miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0771', :eg_version);
+
+INSERT INTO action_trigger.hook (
+ key,
+ core_type,
+ description,
+ passive
+ ) VALUES (
+ 'au.barred',
+ 'au',
+ 'A user was barred by staff',
+ FALSE
+ );
+
+INSERT INTO action_trigger.hook (
+ key,
+ core_type,
+ description,
+ passive
+ ) VALUES (
+ 'au.unbarred',
+ 'au',
+ 'A user was un-barred by staff',
+ FALSE
+ );
+
+INSERT INTO action_trigger.validator (
+ module,
+ description
+ ) VALUES (
+ 'PatronBarred',
+ 'Tests if a patron is currently marked as barred'
+ );
+
+INSERT INTO action_trigger.validator (
+ module,
+ description
+ ) VALUES (
+ 'PatronNotBarred',
+ 'Tests if a patron is currently not marked as barred'
+ );
+
+COMMIT;
+++ /dev/null
-
-BEGIN;
-
-INSERT INTO action_trigger.hook (
- key,
- core_type,
- description,
- passive
- ) VALUES (
- 'au.barred',
- 'au',
- 'A user was barred by staff',
- FALSE
- );
-
-INSERT INTO action_trigger.hook (
- key,
- core_type,
- description,
- passive
- ) VALUES (
- 'au.unbarred',
- 'au',
- 'A user was un-barred by staff',
- FALSE
- );
-
-INSERT INTO action_trigger.validator (
- module,
- description
- ) VALUES (
- 'PatronBarred',
- 'Tests if a patron is currently marked as barred'
- );
-
-INSERT INTO action_trigger.validator (
- module,
- description
- ) VALUES (
- 'PatronNotBarred',
- 'Tests if a patron is currently not marked as barred'
- );
-
-COMMIT;