fix type up.sql