The file 'type' field in the DB is now an enum instead of a string.

Signed-off-by: Thomas LEIBOVICI - CEA/DAM <thomas.leibovici@cea.fr>