Skip to content

Instantly share code, notes, and snippets.

@dhoss
Created May 22, 2015 22:13
Show Gist options
  • Save dhoss/72586b1a1078fb851cc7 to your computer and use it in GitHub Desktop.
Save dhoss/72586b1a1078fb851cc7 to your computer and use it in GitHub Desktop.
play-slick db setup
if [ "$STEEL_TEST_LOCAL" == "1" ]; then
echo "DROPPING DBs";
psql -Upostgres -c "drop table exercise; drop table person; drop table exercise_type; drop table schema_history ;" -d steel_test;
fi
sbt -Dflyway.user=steel_test -Dflyway.password=test -Dflyway.url=jdbc:postgresql:steel_test flywayMigrate
sbt +test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment