RED-4660 source id migration

This commit is contained in:
Timo Bejan 2022-07-21 10:21:02 +03:00
parent 55c656c0b2
commit 5a823902cc
2 changed files with 8 additions and 0 deletions

View File

@ -93,3 +93,5 @@ databaseChangeLog:
file: db/changelog/sql/37-update-colors.sql
- include:
file: db/changelog/sql/38-update-soft-deleted-processed-flag.sql
- include:
file: db/changelog/sql/39-update-manual-redaction-source-id.sql

View File

@ -0,0 +1,6 @@
update manual_redaction
set source_id = reason
where add_to_dictionary = true
and source_id is null
and reason is not null
and reason != 'Dictionary Request';