From 318efe47c1d58d6db25e9434829a7b55d7cced10 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Sat, 16 Jul 2011 12:56:32 -0400 Subject: [PATCH] Stamping upgrade script for "Bad join condition all_circulation view" Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...a.aging_circ_view.sql => 0582.schema.aging_circ_view.sql} | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXX.schema.aging_circ_view.sql => 0582.schema.aging_circ_view.sql} (91%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index da9bebb4b0..00ab3330b1 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,7 @@ CREATE TRIGGER no_overlapping_deps 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 ('0581', :eg_version); -- tsbere via miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0582', :eg_version); -- miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXX.schema.aging_circ_view.sql b/Open-ILS/src/sql/Pg/upgrade/0582.schema.aging_circ_view.sql similarity index 91% rename from Open-ILS/src/sql/Pg/upgrade/XXX.schema.aging_circ_view.sql rename to Open-ILS/src/sql/Pg/upgrade/0582.schema.aging_circ_view.sql index 8e3c440287..02972fd465 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXX.schema.aging_circ_view.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0582.schema.aging_circ_view.sql @@ -1,3 +1,12 @@ +-- Evergreen DB patch 0582.schema.aging_circ_view.sql +-- +-- +BEGIN; + + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0582', :eg_version); + CREATE OR REPLACE VIEW action.all_circulation AS SELECT id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location, copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy, @@ -21,3 +30,6 @@ CREATE OR REPLACE VIEW action.all_circulation AS LEFT JOIN actor.usr_address a ON (p.mailing_address = a.id) LEFT JOIN actor.usr_address b ON (p.billing_address = b.id); + + +COMMIT; -- 2.11.0