RED-705-Remove DELETED status for dossiers and files and use deleted timestamps instead

- add sql script to update the soft delete time to current time when file is deleted and not time set
This commit is contained in:
devplant 2022-05-06 15:04:04 +03:00
parent ab244bd4bb
commit ab208e778f
2 changed files with 3 additions and 0 deletions

View File

@ -65,3 +65,5 @@ databaseChangeLog:
file: db/changelog/26-application-config-table.changelog.yaml
- include:
file: db/changelog/sql/26-initiliaze-application-configuration-table.sql
- include:
file: db/changelog/sql/27-update-soft-delete-date.sql

View File

@ -0,0 +1 @@
update file set deleted = CURRENT_TIMESTAMP where deleted is null and hard_deleted_time is null and processing_status = 'DELETED';