🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js

This commit is contained in:
rUv committed 2025-08-26 16:20:06 +00:00
1 parent d459f2c4b5
commit 72efeed9be
2 files changed
+8 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"checkpoint": "task-20250826-161915", "task": "this error is back. @ruvnet ➜ /workspaces/neural-flow-trader (main) $ npx claude-flow@alpha hive-m", "timestamp": "2025-08-26T16:19:16Z", "commit": "2bf0861744c33bcd11a2f46631e580a078eaedbb", "github_release": "true"}
@@ -160,11 +160,17 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
return;
}
try {
// Check if parent_pid column exists
// Check if required columns exist
const columns = this.db.prepare('PRAGMA table_info(sessions)').all();
const hasSwarmName = columns.some((col) => col.name === 'swarm_name');
const hasParentPid = columns.some((col) => col.name === 'parent_pid');
const hasChildPids = columns.some((col) => col.name === 'child_pids');
if (!hasSwarmName) {
this.db.exec('ALTER TABLE sessions ADD COLUMN swarm_name TEXT');
console.log('Added swarm_name column to sessions table');
}
if (!hasParentPid) {
this.db.exec('ALTER TABLE sessions ADD COLUMN parent_pid INTEGER');
console.log('Added parent_pid column to sessions table');