From ad54c0b94d90e1377d86793da611a1f518b5e1f1 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 6 Feb 2025 17:47:47 +0100 Subject: Use strict mode for tables --- bin/db | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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" -- cgit v1.2.3