trepa/scripts/migrate.sh

9 lines
175 B
Bash

#!/bin/bash
if ! command -v migrate &> /dev/null; then
echo "migrate could not be found"
exit 1
fi
migrate -path ./migrations -database "$DATABASE_URL" -verbose up