aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/db b/bin/db
index 431ba78..186f83d 100755
--- a/bin/db
+++ b/bin/db
@@ -10,9 +10,9 @@ if [ "$1" == "init" ]; then
rm "$DB_PATH"
fi
- for MIGRATION in $(ls sql/migrations); do
- printf "\n- Applying sql/migrations/$MIGRATION\n\n"
- sqlite3 database.db < "sql/migrations/$MIGRATION"
+ for MIGRATION in $(ls sql/migrations/*.sql); do
+ printf "\n- Applying $MIGRATION\n\n"
+ sqlite3 database.db < "$MIGRATION"
done
printf "\n- Applying sql/fixtures.sql\n\n"