#!/usr/bin/env bash # Setup for D3: Database Schema Migration # This task is fully parameterized — workspace files are generated by the generator. # setup.sh is a no-op placeholder; generation is handled by harness/run_task.py. set -euo pipefail WORKSPACE="$1" REPORTS="$2" RUN_ID="${3:-}" mkdir -p "$WORKSPACE" "$REPORTS" # Verify SQLite3 is available (required for migration.py) if ! python3 -c "import sqlite3" 2>/dev/null; then echo "ERROR: sqlite3 Python module not available" >&2 exit 1 fi echo "D3_schema_migration setup complete. Workspace: $WORKSPACE"