c.id,
c.kee as kee,
c.issue_key as issueKey,
c.user_login as userLogin,
c.change_type as changeType,
c.change_data as changeData,
c.created_at as createdAt,
c.updated_at as updatedAt,
c.issue_change_creation_date as issueChangeCreationDate
INSERT INTO issue_changes (kee, issue_key, user_login, change_type, change_data, created_at, updated_at,
issue_change_creation_date)
VALUES (#{kee,jdbcType=VARCHAR}, #{issueKey,jdbcType=VARCHAR}, #{userLogin,jdbcType=VARCHAR},
#{changeType,jdbcType=VARCHAR}, #{changeData,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT},
#{updatedAt,jdbcType=BIGINT}, #{issueChangeCreationDate,jdbcType=BIGINT})
delete from issue_changes where kee=#{id}
update issue_changes set change_data=#{changeData}, updated_at=#{updatedAt} where kee=#{kee}