Comment 4 for bug 1768869

Revision history for this message
Mike Rylander (mrylander) wrote :

The version upgrade script is created during the release bundling process by a script called, unsurprisingly, make_release. I think something like this would work:

diff --git a/build/tools/make_release b/build/tools/make_release
index c3fd2ed..2f00042 100755
--- a/build/tools/make_release
+++ b/build/tools/make_release
@@ -259,6 +259,8 @@ if [ "$PREV_BRANCH" != "PACKAGE" ]; then
                 cat Open-ILS/src/sql/Pg/upgrade/$NUM.* 2>/dev/null | grep -v '^\s*\(BEGIN\|COMMIT\);\s*$' >> $UPGRADE_FILE
             done;
             echo "COMMIT;" >> $UPGRADE_FILE
+ echo "" >> $UPGRADE_FILE
+ echo "SELECT auditor.update_auditors();" >> $UPGRADE_FILE
             MAYBE_DUPES=`grep -oP 'CREATE (OR REPLACE )?FUNCTION +\K[^ ]*(?= *\()' $UPGRADE_FILE | sort | grep -P '^(.*)\n\1$' | sort -u`
             if [ -n "$MAYBE_DUPES" ]; then
                 echo ""