diff --git a/src-tauri/src/db.rs b/src-tauri/src/db.rs index ba57a21..4e46df7 100644 --- a/src-tauri/src/db.rs +++ b/src-tauri/src/db.rs @@ -890,6 +890,8 @@ pub mod commands { end_date: row.get::(10).ok(), created_at: row.get::(11).ok(), updated_at: row.get::(12).ok(), + item_type: None, + hierarchy_path: None, }); } Ok(epics) @@ -901,12 +903,13 @@ pub mod commands { let conn = get_conn(&db_path).await?; conn.execute( - "INSERT OR REPLACE INTO epics (id, initiative_id, code, name, description, status, client_taker, stimated_start_date, stimated_end_date, start_date, end_date, updated_at) - VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, datetime('now'))", + "INSERT OR REPLACE INTO epics (id, initiative_id, code, name, description, status, client_taker, stimated_start_date, stimated_end_date, start_date, end_date, item_type, hierarchy_path, updated_at) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, datetime('now'))", libsql::params![ epic.id, epic.initiative_id, epic.code, epic.name, epic.description, epic.status, epic.client_taker, epic.stimated_start_date, epic.stimated_end_date, epic.start_date, epic.end_date, + epic.item_type, epic.hierarchy_path, ], ) .await @@ -967,6 +970,9 @@ pub mod commands { actual_hours: row.get::(11).ok(), assigned_to: row.get::(12).ok(), created_at: row.get::(13).ok(), + item_type: None, + hierarchy_path: None, + parent_code: None, }); } Ok(stories) @@ -978,14 +984,15 @@ pub mod commands { let conn = get_conn(&db_path).await?; conn.execute( - "INSERT OR REPLACE INTO user_stories (id, initiative_id, epic_id, code, title, description, acceptance_criteria, status, priority, story_points, estimated_hours, actual_hours, assigned_to) - VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13)", + "INSERT OR REPLACE INTO user_stories (id, initiative_id, epic_id, code, title, description, acceptance_criteria, status, priority, story_points, estimated_hours, actual_hours, assigned_to, item_type, hierarchy_path, parent_code) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15, ?16)", libsql::params![ story.id, story.initiative_id, story.epic_id, story.code, story.title, story.description, story.acceptance_criteria, story.status, story.priority, story.story_points, story.estimated_hours, story.actual_hours, story.assigned_to, + story.item_type, story.hierarchy_path, story.parent_code, ], ) .await