fix(migrations): correct progress_mode type casting in SQL migration

- Updated the SQL migration to ensure proper type casting for progress_mode when updating progress values based on project_id.
This commit is contained in:
chamiakJ
2025-06-12 14:11:04 +05:30
parent ccb50e3c62
commit 58ce8e40c7
2 changed files with 6 additions and 47 deletions

View File

@@ -145,7 +145,7 @@ BEGIN
SET progress_value = NULL,
progress_mode = NULL
WHERE project_id = _project_id
AND progress_mode = _old_mode;
AND progress_mode::text::progress_mode_type = _old_mode;
END IF;
RETURN NEW;