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

Commit4baf4a6

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
reverse condition
1 parent9d42e1c commit4baf4a6

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
@@ -320,9 +320,9 @@ public void addTimeSeriesSnapshotHistory(MongockTemplate mongoTemplate, CommonCo
320320
// Create the time-series collection if it doesn't exist
321321
if (!mongoTemplate.collectionExists(ApplicationHistorySnapshotTS.class)) {
322322
if(mongoVersion <5) {
323-
mongoTemplate.createCollection(ApplicationHistorySnapshotTS.class,CollectionOptions.empty().timeSeries("createdAt"));
324-
}else {
325323
mongoTemplate.createCollection(ApplicationHistorySnapshotTS.class);
324+
}else {
325+
mongoTemplate.createCollection(ApplicationHistorySnapshotTS.class,CollectionOptions.empty().timeSeries("createdAt"));
326326
}
327327
}
328328
InstantthresholdDate =Instant.now().minus(commonConfig.getQuery().getAppSnapshotKeepDuration(),ChronoUnit.DAYS);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp