feat(storage): add parent_task_id migration for micro-stepping
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -118,6 +118,10 @@ const MIGRATIONS: &[(i64, &str, &str)] = &[
|
||||
CREATE INDEX IF NOT EXISTS idx_tasks_priority ON tasks(priority);
|
||||
CREATE INDEX IF NOT EXISTS idx_tasks_project ON tasks(project)
|
||||
"#),
|
||||
(3, "phase 2b — parent_task_id for micro-stepping", r#"
|
||||
ALTER TABLE tasks ADD COLUMN parent_task_id TEXT;
|
||||
CREATE INDEX IF NOT EXISTS idx_tasks_parent ON tasks(parent_task_id)
|
||||
"#),
|
||||
];
|
||||
|
||||
/// Split SQL text into individual statements, respecting BEGIN...END blocks
|
||||
@@ -236,7 +240,7 @@ mod tests {
|
||||
.fetch_one(&pool)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(count, 2);
|
||||
assert_eq!(count, 3);
|
||||
|
||||
sqlx::query("INSERT INTO settings (key, value) VALUES ('test', 'value')")
|
||||
.execute(&pool)
|
||||
@@ -279,6 +283,6 @@ mod tests {
|
||||
.fetch_one(&pool)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(count, 2);
|
||||
assert_eq!(count, 3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user