Alter make_release to always create a db upgrade script, even when no
actual db upgrades need to be applied. The minimal script created
will at least set the upgrade version in config.upgrade_log.
Signed-off-by: Jason Stephenson <jason@sigio.com>
if [ -f "$UPGRADE_FILE" ]; then
echo "Upgrade script for $PREV_VERSION-$VERSION already exists. Skipping."
UPGRADE_FILE=""
- elif [ -n "$UPGRADE_CHECK" ]; then
- echo "Found Upgrade Files! Building Upgrade Script."
+ else
+ echo "Building Upgrade Script."
echo "--Upgrade Script for $PREV_VERSION to $VERSION" > $UPGRADE_FILE
echo "\set eg_version '''$VERSION'''" >> $UPGRADE_FILE
echo "BEGIN;" >> $UPGRADE_FILE