diff options
author | Joris | 2025-02-06 17:47:47 +0100 |
---|---|---|
committer | Joris | 2025-02-06 17:47:47 +0100 |
commit | ad54c0b94d90e1377d86793da611a1f518b5e1f1 (patch) | |
tree | 69d0403e4ccce57c13306ed8565eeb99f1d2d2fd /bin/db | |
parent | 20f4642f9dd53f1dc399b3d54f59ea13ad69b8cd (diff) |
Use strict mode for tables
Diffstat (limited to 'bin/db')
-rwxr-xr-x | bin/db | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |