mxd 3 år sedan
förälder
incheckning
6e0c8e1486

+ 1 - 1
magic-api/src/main/java/org/ssssssss/magicapi/provider/impl/MagicDatabaseBackupService.java

@@ -44,7 +44,7 @@ public class MagicDatabaseBackupService implements MagicBackupService {
 		this.DELETE_BY_ID = String.format("delete from %s where id = ?", tableName);
 		this.FIND_BY_TAG = String.format("select %s from %s where tag = ? order by create_date desc", DEFAULT_COLUMNS, tableName);
 		this.FIND_BY_TIMESTAMP = String.format("select %s from %s where create_date < ? order by create_date desc", DEFAULT_COLUMNS, tableName);
-		this.DELETE_BY_TIMESTAMP = String.format("delete from %s where create_date < ? order by create_date desc", tableName);
+		this.DELETE_BY_TIMESTAMP = String.format("delete from %s where create_date < ?", tableName);
 		this.FIND_BY_ID_AND_TIMESTAMP = String.format("select * from %s where id = ? and create_date = ?", tableName);
 	}