fix: legacy skills::create mirrors title into new name column
ci / gates (push) Successful in 6s
ci / frontend (push) Successful in 38s
ci / rust (push) Successful in 3m25s
ci / e2e (push) Skipped
ci / publish (push) Successful in 4m7s

This commit is contained in:
Omar Sobh
2026-07-19 13:07:53 -07:00
parent ade04d24cb
commit 5f988ce022
2 changed files with 23 additions and 2 deletions
+4 -2
View File
@@ -27,8 +27,10 @@ pub async fn create(
) -> Result<Skill, DbError> {
let id = Uuid::now_v7();
sqlx::query!(
"INSERT INTO skills (id, workspace_id, title, author, description, body)
VALUES ($1, $2, $3, $4, $5, $6)",
// `name` is required by the Slice 3.5a skills catalog extension
// (0049) — mirror the title until Slice 9 folds the two columns.
"INSERT INTO skills (id, workspace_id, title, name, author, description, body)
VALUES ($1, $2, $3, $3, $4, $5, $6)",
id,
workspace_id.map(|w| w.as_uuid()),
title,