-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fusionne la recommandation et la description de l'erreur (#720)
* remove recommandation textarea in audit and render in report * add migration * rename errorDescription to notCompliantComment * fix migration * update changelog --------- Co-authored-by: Adrien Boutigny <[email protected]>
- Loading branch information
1 parent
d11f385
commit 5e59a0d
Showing
12 changed files
with
71 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
.../20240605130806_merge_criterion_result_recommandation_and_error_description/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- Merge recommandation and errorDescription into errorDescription | ||
UPDATE | ||
"CriterionResult" | ||
SET | ||
"errorDescription" = | ||
CASE | ||
WHEN "errorDescription" IS NULL OR LENGTH(BTRIM("errorDescription", E' \t\r\n')) = 0 | ||
THEN BTRIM("recommandation", E' \t\r\n') | ||
ELSE | ||
BTRIM(COALESCE("errorDescription", ''), E' \t\r\n') || E'\n\n---\n\n' || BTRIM("recommandation", E' \t\r\n') | ||
END | ||
WHERE | ||
"recommandation" IS NOT NULL | ||
AND LENGTH(BTRIM("recommandation", E' \t\r\n')) > 0; | ||
|
||
/* | ||
Warnings: | ||
- You are about to drop the column `recommandation` on the `CriterionResult` table. All the data in the column will be lost. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "CriterionResult" DROP COLUMN "recommandation"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters