make sure generate-models.sh runs from correct dir

This commit is contained in:
cblgh 2021-03-31 10:54:48 +02:00
parent faae7c0324
commit 5666ee4a80
1 changed files with 3 additions and 1 deletions

4
roomdb/sqlite/generate_models.sh Normal file → Executable file
View File

@ -1,11 +1,13 @@
#!/bin/sh
set -e
# ensure tools are installed
go get github.com/volatiletech/sqlboiler/v4
go get github.com/volatiletech/sqlboiler-sqlite3
# make sure we are in the correct directory
cd "$(dirname $0)"
# run the migrations (creates testrun/TestSchema/roomdb)
go test -run Schema