Files
jpmschweitzerandClaude Opus 4.6 feb333f3e7 chore(tooling): add star-map wireframe + wipe-bodies script
docs/wireframes/star-map.f0 — Frame0 wireframe for the galaxy
navigator (created during wireframing session).
tooling/wipe-bodies.sh — utility to clear bodies/stations tables
in systems.db (preserves star_systems).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 14:47:26 +01:00

13 lines
424 B
Bash
Executable File

#!/usr/bin/env bash
# Wipe all bodies and stations from systems.db (not star_systems!)
set -euo pipefail
DB="$(cd "$(dirname "$0")/.." && pwd)/server/data/systems.db"
echo "Deleting all stations..."
sqlite3 "$DB" "DELETE FROM stations;"
echo "Deleting all bodies..."
sqlite3 "$DB" "DELETE FROM bodies;"
echo "Done."
sqlite3 "$DB" "SELECT 'bodies: ' || COUNT(*) FROM bodies; SELECT 'stations: ' || COUNT(*) FROM stations;"