Renamed some of the goal fields to align with business logic

This commit is contained in:
ivan-pelly
2026-03-14 16:30:17 -07:00
parent 7f91e2e557
commit 4d9b83c327
50 changed files with 279 additions and 149 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ CREATE DEFINER=`root`@`%` PROCEDURE `sp_Goal_Update`(
IN p_id_goal_parent CHAR(36),
IN p_id_student CHAR(36),
IN p_id_user_created CHAR(36),
IN p_title VARCHAR(255),
IN p_description TEXT,
IN p_category VARCHAR(100)
IN p_category VARCHAR(255),
IN p_baseline TEXT
)
BEGIN
UPDATE goal
@@ -14,9 +14,9 @@ BEGIN
id_goal_parent = COALESCE(p_id_goal_parent, id_goal_parent),
id_student = COALESCE(p_id_student, id_student),
id_user_created = COALESCE(p_id_user_created, id_user_created),
title = COALESCE(p_title, title),
description = COALESCE(p_description, description),
category = COALESCE(p_category, category),
baseline = COALESCE(p_baseline, baseline),
updated_at = UTC_TIMESTAMP()
WHERE id_goal = p_id_goal;
SELECT ROW_COUNT() AS rows_affected;