mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
13 lines
481 B
Bash
Executable File
13 lines
481 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Nuke local database files to trigger full re-seed on next backend start.
|
|
# The backend auto-creates tables and seeds the 3 demo tiers when db files are missing.
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
DB_DIR="$PROJECT_DIR/db"
|
|
|
|
echo "Nuking database files in $DB_DIR ..."
|
|
rm -fv "$DB_DIR/finance.db" "$DB_DIR/sessions.db" 2>/dev/null || true
|
|
echo "Done. Restart the backend to reinitialize with all 3 tiers."
|