File size: 574 Bytes
7e760fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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"