dossier and npe cleanup

This commit is contained in:
Timo Bejan 2022-02-17 15:06:19 +02:00
parent 016af5fe0c
commit e1060a7ad8
3 changed files with 5 additions and 4 deletions

View File

@ -15,5 +15,7 @@ databaseChangeLog:
file: db/changelog/7-json-column-mapping.changelog.yaml
- include:
file: db/changelog/sql/7.1-set-json-fields.sql
- include:
file: db/changelog/sql/7.2-set-dossier-status.sql
- include:
file: db/changelog/8-remove-old-dossier-status-column.changelog.yaml

View File

@ -25,7 +25,3 @@ update download_status set download_file_types =
(select '['||STRING_AGG( '"'|| download_file_types || '"', ', ')||']'
from download_status_entity_download_file_types dem where dem.download_status_entity_storage_id = download_status.storage_id
group by dem.download_status_entity_storage_id);
update dossier set dossier_status = 'ACTIVE' where status = 0 or status is null;
update dossier set dossier_status = 'DELETED' where status = 1;
update dossier set dossier_status = 'ARCHIVED' where status = 2;

View File

@ -0,0 +1,3 @@
update dossier set dossier_status = 'ACTIVE' where status = 0 or status is null;
update dossier set dossier_status = 'DELETED' where status = 1;
update dossier set dossier_status = 'ARCHIVED' where status = 2;