huskies: merge 492_story_remove_filesystem_pipeline_state_and_store_story_content_in_database
This commit is contained in:
@@ -302,6 +302,13 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
}
|
||||
}
|
||||
|
||||
// Import any existing .huskies/work/ stories into the DB content store.
|
||||
// This is the migration path: on startup, stories on disk are imported so
|
||||
// the database becomes the sole source of truth going forward.
|
||||
if let Some(ref root) = *app_state.project_root.lock().unwrap() {
|
||||
db::import_from_filesystem(root);
|
||||
}
|
||||
|
||||
// (CRDT state layer is initialised above alongside the legacy pipeline.db.)
|
||||
|
||||
let workflow = Arc::new(std::sync::Mutex::new(WorkflowState::default()));
|
||||
|
||||
Reference in New Issue
Block a user