Correctly handle "enum" fields in the database installer (see #6387)