Pass arguments through in booksql helper

This commit is contained in:
~lucidiot 2023-02-25 19:38:10 +01:00
parent 35c18a1059
commit 3f35db4de8
1 changed files with 1 additions and 1 deletions

View File

@ -14,4 +14,4 @@ if [ ! -e "$BOOKSQL_DB_PATH" ]; then
echo "Creating new database at $BOOKSQL_DB_PATH" >&2
cat "$BOOKSQL_PATH/schema.sql" "$BOOKSQL_PATH/init.sql" | sqlite3 -bail "$BOOKSQL_DB_PATH"
fi
sqlite3 -box -cmd 'PRAGMA foreign_keys = ON' -cmd 'PRAGMA ignore_check_constraints = OFF' "$BOOKSQL_DB_PATH"
sqlite3 -box -cmd 'PRAGMA foreign_keys = ON' -cmd 'PRAGMA ignore_check_constraints = OFF' "$BOOKSQL_DB_PATH" "$@"