As noted in the bug description, attempts to run 0864.MVF_CRA-upgrade.sql will
fail on a database where the reporter.classic_current_circ view is present.
Add a DROP VIEW IF EXISTS and then include a note that administrators will need
to recreate the VIEW afterwards if desired.
Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
WHERE COALESCE(u.id,c.id) IS NOT NULL
GROUP BY 1;
+DROP VIEW IF EXISTS reporter.classic_current_circ;
DROP VIEW metabib.rec_descriptor;
DROP TABLE metabib.record_attr;
$F$ LANGUAGE SQL STABLE;
COMMIT;
+\qecho 'We dropped reporter.classic_current_circ earlier from the'
+\qecho 'example.reporter-extension.sql sample. You will need to'
+\qecho 'run it again to recreate that custom reporter view.'