dossier and npe cleanup
This commit is contained in:
parent
016af5fe0c
commit
e1060a7ad8
@ -15,5 +15,7 @@ databaseChangeLog:
|
|||||||
file: db/changelog/7-json-column-mapping.changelog.yaml
|
file: db/changelog/7-json-column-mapping.changelog.yaml
|
||||||
- include:
|
- include:
|
||||||
file: db/changelog/sql/7.1-set-json-fields.sql
|
file: db/changelog/sql/7.1-set-json-fields.sql
|
||||||
|
- include:
|
||||||
|
file: db/changelog/sql/7.2-set-dossier-status.sql
|
||||||
- include:
|
- include:
|
||||||
file: db/changelog/8-remove-old-dossier-status-column.changelog.yaml
|
file: db/changelog/8-remove-old-dossier-status-column.changelog.yaml
|
||||||
|
|||||||
@ -25,7 +25,3 @@ update download_status set download_file_types =
|
|||||||
(select '['||STRING_AGG( '"'|| 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
|
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);
|
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;
|
|
||||||
|
|||||||
@ -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;
|
||||||
Loading…
x
Reference in New Issue
Block a user