#!/usr/bin/env bash # Runs the standalone migration.MigrationCli against the live database - no app # restart, no app deploy. Usage: migrate.sh set -euo pipefail DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$DIR/env.sh" TARGET="${1:-latest}" java -cp "$MODULE_DIR/target/classes:$(cat "$CP_FILE")" \ com.ankurm.expandcontract.migration.MigrationCli --target="$TARGET"