File Status mapping
The file status is stored as an integer value in DB with following meanings:
MIGRATION_FAILED = -5
QUERY_HSM_FAILED = -4
MD5_CHECK_FAILED = -3
VERIFY_COMPRESS_FAILED = -2
COMPRESS_FAILED = -1
DEFAULT = 0
TO_ARCHIVE = 1
ARCHIVED = 2
COMPRESSING = 3
MIGRATED = 4