swh-func.sql: use ENUM type directory_entry_type
instead of TEXT. Adapt swh_directory_walk_one accordingly