diff --git a/scripts/migrate.sh b/scripts/migrate.sh new file mode 100644 index 0000000..4a90a08 --- /dev/null +++ b/scripts/migrate.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +#Check if the migrate command is available +if ! command -v migrate &> /dev/null; then + echo "migrate could not be found" + exit 1 +fi + + +#Execute migrate up +migrate -path ./migrations -database "$DATABASE_URL" -verbose up