RED-4483-skippedHexColor not added during migration

- add script to update entity with default skippedColor of the dossier template
This commit is contained in:
devplant 2022-07-05 13:26:17 +03:00
parent 70f9d4807e
commit 2a999b848f
2 changed files with 3 additions and 0 deletions

View File

@ -83,3 +83,5 @@ databaseChangeLog:
file: db/changelog/sql/33-set-file-processing-error-counter.sql
- include:
file: db/changelog/34-add-reports-information-column.changelog.yaml
- include:
file: db/changelog/sql/35-update-skipped-color-existing-types.sql

View File

@ -0,0 +1 @@
update entity e set skipped_hex_color = (select not_redacted from color_configuration c where c.dossier_template_id = e.dossier_template_id) where skipped_hex_color is null;