woodpecker/vendor/github.com/rubenv/sql-migrate/test-integration/mysql.sh

15 lines
274 B
Bash
Raw Normal View History

2015-09-30 01:21:17 +00:00
#!/bin/bash
# Tweak PATH for Travis
export PATH=$PATH:$HOME/gopath/bin
OPTIONS="-config=test-integration/dbconfig.yml -env mysql"
set -ex
sql-migrate status $OPTIONS
sql-migrate up $OPTIONS
sql-migrate down $OPTIONS
sql-migrate redo $OPTIONS
sql-migrate status $OPTIONS