mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 09:57:37 +00:00
Added Goals fields
This commit is contained in:
@@ -6,7 +6,11 @@ CREATE DEFINER=`root`@`%` PROCEDURE `sp_Goal_Update`(
|
||||
IN p_id_user_created CHAR(36),
|
||||
IN p_description TEXT,
|
||||
IN p_category VARCHAR(255),
|
||||
IN p_baseline TEXT
|
||||
IN p_baseline TEXT,
|
||||
IN p_target_completion_date DATE,
|
||||
IN p_close_date DATE,
|
||||
IN p_achieved TINYINT(1),
|
||||
IN p_close_notes TEXT
|
||||
)
|
||||
BEGIN
|
||||
UPDATE goal
|
||||
@@ -17,6 +21,10 @@ BEGIN
|
||||
description = COALESCE(p_description, description),
|
||||
category = COALESCE(p_category, category),
|
||||
baseline = COALESCE(p_baseline, baseline),
|
||||
target_completion_date = COALESCE(p_target_completion_date, target_completion_date),
|
||||
close_date = COALESCE(p_close_date, close_date),
|
||||
achieved = COALESCE(p_achieved, achieved),
|
||||
close_notes = COALESCE(p_close_notes, close_notes),
|
||||
updated_at = UTC_TIMESTAMP()
|
||||
WHERE id_goal = p_id_goal;
|
||||
SELECT ROW_COUNT() AS rows_affected;
|
||||
|
||||
Reference in New Issue
Block a user