Pull request #492: RED-4660 source id migration

Merge in RED/persistence-service from RED-4660 to master

* commit '5a823902cce83ba0646855d367fc8858f4011b1f':
  RED-4660 source id migration
This commit is contained in:
Timo Bejan 2022-07-21 11:55:09 +02:00
commit 0ade73b209
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';