Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ced9ee

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
Fix migration of snapshot history
1 parentd43d0aa commit4ced9ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/runner/migrations/DatabaseChangelog.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public void addTimeSeriesSnapshotHistory(MongockTemplate mongoTemplate, CommonCo
359359
}
360360

361361
// Delete the migrated records
362-
QuerydeleteQuery =newQuery(Criteria.where("createdAt").gte(thresholdDate));
362+
QuerydeleteQuery =newQuery(Criteria.where("createdAt").lte(thresholdDate));
363363
DeleteResultdeleteResult =mongoTemplate.remove(deleteQuery,ApplicationHistorySnapshot.class);
364364

365365
log.info("Deleted {} records from the source collection.",deleteResult.getDeletedCount());
@@ -390,7 +390,7 @@ public void addTimeSeriesSnapshotHistory(MongockTemplate mongoTemplate, CommonCo
390390
.toCollection();
391391

392392
// Delete the migrated records
393-
QuerydeleteQuery =newQuery(Criteria.where("createdAt").gte(thresholdDate));
393+
QuerydeleteQuery =newQuery(Criteria.where("createdAt").lte(thresholdDate));
394394
DeleteResultdeleteResult =mongoTemplate.remove(deleteQuery,ApplicationHistorySnapshot.class);
395395

396396
log.info("Deleted {} records from the source collection.",deleteResult.getDeletedCount());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp