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