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 ('0727', :eg_version); -- denials/mrpeters
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0728', :eg_version); -- berick/miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0728', :eg_version);
+
+INSERT INTO actor.search_filter_group (owner, code, label)
+ VALUES (1, 'kpac_main', 'Kid''s OPAC Search Filter');
+
+INSERT INTO actor.search_query (label, query_text)
+ VALUES ('Children''s Materials', 'audience(a,b,c)');
+INSERT INTO actor.search_query (label, query_text)
+ VALUES ('Young Adult Materials', 'audience(j,d)');
+INSERT INTO actor.search_query (label, query_text)
+ VALUES ('General/Adult Materials', 'audience(e,f,g, )');
+
+INSERT INTO actor.search_filter_group_entry (grp, query, pos)
+ VALUES (
+ (SELECT id FROM actor.search_filter_group WHERE code = 'kpac_main'),
+ (SELECT id FROM actor.search_query WHERE label = 'Children''s Materials'),
+ 0
+ );
+INSERT INTO actor.search_filter_group_entry (grp, query, pos)
+ VALUES (
+ (SELECT id FROM actor.search_filter_group WHERE code = 'kpac_main'),
+ (SELECT id FROM actor.search_query WHERE label = 'Young Adult Materials'),
+ 1
+ );
+INSERT INTO actor.search_filter_group_entry (grp, query, pos)
+ VALUES (
+ (SELECT id FROM actor.search_filter_group WHERE code = 'kpac_main'),
+ (SELECT id FROM actor.search_query WHERE label = 'General/Adult Materials'),
+ 2
+ );
+
+COMMIT;
+
+++ /dev/null
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO actor.search_filter_group (owner, code, label)
- VALUES (1, 'kpac_main', 'Kid''s OPAC Search Filter');
-
-INSERT INTO actor.search_query (label, query_text)
- VALUES ('Children''s Materials', 'audience(a,b,c)');
-INSERT INTO actor.search_query (label, query_text)
- VALUES ('Young Adult Materials', 'audience(j,d)');
-INSERT INTO actor.search_query (label, query_text)
- VALUES ('General/Adult Materials', 'audience(e,f,g, )');
-
-INSERT INTO actor.search_filter_group_entry (grp, query, pos)
- VALUES (
- (SELECT id FROM actor.search_filter_group WHERE code = 'kpac_main'),
- (SELECT id FROM actor.search_query WHERE label = 'Children''s Materials'),
- 0
- );
-INSERT INTO actor.search_filter_group_entry (grp, query, pos)
- VALUES (
- (SELECT id FROM actor.search_filter_group WHERE code = 'kpac_main'),
- (SELECT id FROM actor.search_query WHERE label = 'Young Adult Materials'),
- 1
- );
-INSERT INTO actor.search_filter_group_entry (grp, query, pos)
- VALUES (
- (SELECT id FROM actor.search_filter_group WHERE code = 'kpac_main'),
- (SELECT id FROM actor.search_query WHERE label = 'General/Adult Materials'),
- 2
- );
-
-COMMIT;
-