@Override public void drop(boolean ignoreDoesNotExist) throws SQLException { try { super.drop(ignoreDoesNotExist); } catch (SQLException ex) { if (ex.getSQLState().equals("42P01")) { // the triggers table does not exist anymore // ignore... } else { throw ex; } } PreparedStatement ps = yordifier .getConnection() .prepareStatement("DELETE FROM " + Yordifier.TRIGGERS.getName() + " WHERE NAME = ?"); ps.setString(1, name); ps.execute(); }