Skip to content

Commit

Permalink
Additional changes to MySQL purge all events query, as per issue #564
Browse files Browse the repository at this point in the history
  • Loading branch information
terrypacker committed Dec 22, 2015
1 parent 25b72c0 commit e748ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/com/serotonin/m2m2/db/dao/EventDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public int purgeAllEvents(){
@Override
public Integer doInTransaction(TransactionStatus status) {
int count = ejt2.queryForInt("select count(*) from events", new Object[0], 0);
ejt2.update("delete from userevents");
ejt2.update("delete from userEvents");
ejt2.update("delete from events");
ejt2.update("delete from userComments where commentType=" + UserComment.TYPE_EVENT
+ " and typeKey not in (select id from events)");
Expand Down

0 comments on commit e748ad8

Please sign in to comment.