Author: Kevin Schoon [me@kevinschoon.com]
Hash: 4a2d79f00a2a7a062b4b582532e7c02823758ca4
Timestamp: Sat, 01 Jun 2024 14:54:10 +0000 (1 month ago)

+2 -2 +/-1 browse
use cargo sqlx instead of system sqlx
1diff --git a/scripts/ensure_database.sh b/scripts/ensure_database.sh
2index f1a897c..2f15919 100755
3--- a/scripts/ensure_database.sh
4+++ b/scripts/ensure_database.sh
5 @@ -15,7 +15,7 @@ DB_URL="sqlite://${DB_PATH}"
6 mkdir -p "$(dirname "${DB_PATH}")"
7
8 if [ ! -f ${DB_PATH} ]; then
9- sqlx database create --database-url "${DB_URL}"
10+ cargo sqlx database create --database-url "${DB_URL}"
11 fi
12
13- sqlx migrate run --source "$COMPONENT/migrations" --database-url "${DB_URL}"
14+ cargo sqlx migrate run --source "$COMPONENT/migrations" --database-url "${DB_URL}"