insert into alf_applied_patch ( id, description, fixes_from_schema, fixes_to_schema, target_schema, applied_to_schema, applied_on_date, applied_to_server, was_executed, succeeded, report ) values ( #{id}, #{description,jdbcType=VARCHAR}, #{fixesFromSchema,jdbcType=INTEGER}, #{fixesToSchema,jdbcType=INTEGER}, #{targetSchema,jdbcType=INTEGER}, #{appliedToSchema,jdbcType=INTEGER}, #{appliedOnDate,jdbcType=TIMESTAMP}, #{appliedToServer,jdbcType=VARCHAR}, #{wasExecuted,jdbcType=BOOLEAN}, #{succeeded,jdbcType=BOOLEAN}, #{report,jdbcType=VARCHAR} ) update alf_applied_patch set description = #{description,jdbcType=VARCHAR}, fixes_from_schema = #{fixesFromSchema,jdbcType=INTEGER}, fixes_to_schema = #{fixesToSchema,jdbcType=INTEGER}, target_schema = #{targetSchema,jdbcType=INTEGER}, applied_to_schema = #{appliedToSchema,jdbcType=INTEGER}, applied_on_date = #{appliedOnDate,jdbcType=TIMESTAMP}, applied_to_server = #{appliedToServer,jdbcType=VARCHAR}, was_executed = #{wasExecuted,jdbcType=BOOLEAN}, succeeded = #{succeeded,jdbcType=BOOLEAN}, report = #{report,jdbcType=VARCHAR} where id = #{id}