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 ('1260', :eg_version); -- rhamby/serickson/JBoyer
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1261', :eg_version); -- berick/ehardy/sandbergja
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1261', :eg_version);
+
+CREATE OR REPLACE FUNCTION evergreen.located_uris_as_uris
+ (bibid BIGINT, ouid INT, pref_lib INT DEFAULT NULL)
+ RETURNS SETOF asset.uri AS $FUNK$
+ /* Maps a bib directly to its scoped asset.uri's */
+
+ SELECT uri.*
+ FROM evergreen.located_uris($1, $2, $3) located_uri
+ JOIN asset.uri_call_number_map map ON (map.call_number = located_uri.id)
+ JOIN asset.uri uri ON (uri.id = map.uri)
+
+$FUNK$ LANGUAGE SQL STABLE;
+
+COMMIT;
+++ /dev/null
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
-
-CREATE OR REPLACE FUNCTION evergreen.located_uris_as_uris
- (bibid BIGINT, ouid INT, pref_lib INT DEFAULT NULL)
- RETURNS SETOF asset.uri AS $FUNK$
- /* Maps a bib directly to its scoped asset.uri's */
-
- SELECT uri.*
- FROM evergreen.located_uris($1, $2, $3) located_uri
- JOIN asset.uri_call_number_map map ON (map.call_number = located_uri.id)
- JOIN asset.uri uri ON (uri.id = map.uri)
-
-$FUNK$ LANGUAGE SQL STABLE;
-
-COMMIT;