fix: legacy skills::create mirrors title into new name column
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user