Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUvac990a2ad2f0
diff --git a/docs/ruvector-postgres/scripts/run-migrations.sh b/docs/ruvector-postgres/scripts/run-migrations.sh
new file mode 100644
index 0000000000..f3036a99f6
--- /dev/null
+++ b/docs/ruvector-postgres/scripts/run-migrations.sh
@@ -0,0 +1,59 @@
+#!/bin/bash
+# Run RuVector PostgreSQL migrations
+
+set -e
+
+HOST="${PGHOST:-localhost}"
+PORT="${PGPORT:-5432}"
+DATABASE="${PGDATABASE:-claude_flow}"
+USER="${PGUSER:-claude}"
+PASSWORD="${PGPASSWORD:-claude-flow-test}"
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
+MIGRATIONS_DIR="$PROJECT_ROOT/v3/@claude-flow/plugins/src/integrations/ruvector/migrations"
+
+echo "πŸš€ Running RuVector PostgreSQL Migrations"
+echo "=========================================="
+echo ""
+echo "Host: $HOST:$PORT"
+echo "Database: $DATABASE"
+echo "User: $USER"
+echo "Migrations: $MIGRATIONS_DIR"
+echo ""
+
+# Check if migrations directory exists
+if [ ! -d "$MIGRATIONS_DIR" ]; then
+ echo "❌ Migrations directory not found: $MIGRATIONS_DIR"
+ echo ""
+ echo "Trying to use CLI instead..."
+ npx claude-flow@alpha ruvector migrate \
+ --host $HOST \
+ --port $PORT \
+ --database $DATABASE \
+ --user $USER \
+ --up
+ exit $?
+fi
+
+# Run each migration in order
+for migration in $(ls -1 "$MIGRATIONS_DIR"/*.sql 2>/dev/null | sort); do
+ filename=$(basename "$migration")
+ echo "πŸ“„ Running: $filename"
+
+ PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -f "$migration" 2>&1 | \
+ grep -v "^$" | while read line; do
+ echo " $line"
+ done
+
+ if [ ${PIPESTATUS[0]} -eq 0 ]; then
+ echo " βœ… Complete"
+ else
+ echo " ❌ Failed"
+ exit 1
+ fi
+ echo ""
+done
+
+echo "=========================================="
+echo "βœ… All migrations complete!"