fix(build system): delete stale .sqlx folders

This commit is contained in:
einliterflasche 2025-08-20 10:56:14 +02:00
parent 8d976890a1
commit b5574de1fb
No known key found for this signature in database
GPG key ID: 90676A9B07184BC9
3 changed files with 5 additions and 8 deletions

View file

@ -43,11 +43,11 @@ cargo sqlx database create
for dir in swap monero-sys monero-rpc-pool; do
echo "🔄 Running migrations in $dir..."
(cd "$WORKSPACE_ROOT/$dir" && cargo sqlx migrate run --ignore-missing)
(cd "$WORKSPACE_ROOT/$dir" && rm -rf .sqlx && cargo sqlx migrate run --ignore-missing)
done
echo "⚡ Preparing SQLx query cache..."
cargo sqlx prepare --workspace
cargo sqlx prepare --workspace
echo "✅ SQLx query cache regenerated successfully!"
echo "📝 The .sqlx directory has been updated with the latest query metadata."