Commit 31c16fc 1 parent e595ea5 commit 31c16fc Copy full SHA for 31c16fc
File tree 5 files changed +7
-20
lines changed
flowable-cmmn-engine/src/main/resources/org/flowable/cmmn/db/mapping
flowable-dmn-engine/src/main/resources/org/flowable/dmn/db/mapping
flowable-engine-common/src/main
java/org/flowable/common/engine/impl/db
resources/org/flowable/common/db/mapping
flowable-event-registry/src/main/resources/org/flowable/eventregistry/db/mapping
5 files changed +7
-20
lines changed Original file line number Diff line number Diff line change 27
27
<mapper resource =" org/flowable/common/db/mapping/entity/Property.xml" />
28
28
<mapper resource =" org/flowable/common/db/mapping/entity/ByteArray.xml" />
29
29
<mapper resource =" org/flowable/common/db/mapping/entity/TableData.xml" />
30
- <mapper resource =" org/flowable/common/db/mapping/ChangeLog.xml" />
31
30
<mapper resource =" org/flowable/common/db/mapping/common.xml" />
32
31
33
32
<mapper resource =" org/flowable/cmmn/db/mapping/ChangeTenantCmmn.xml" />
Original file line number Diff line number Diff line change 9
9
<mappers >
10
10
<!-- Common mappers -->
11
11
<mapper resource =" org/flowable/common/db/mapping/entity/Property.xml" />
12
- <mapper resource =" org/flowable/common/db/mapping/ChangeLog.xml" />
13
12
<mapper resource =" org/flowable/common/db/mapping/common.xml" />
14
13
15
14
<mapper resource =" org/flowable/dmn/db/mapping/ChangeTenantDmn.xml" />
Original file line number Diff line number Diff line change @@ -198,13 +198,16 @@ protected ChangeLogVersion getChangeLogVersion() {
198
198
changeLogTableName = prependDatabaseTablePrefix (changeLogTableName );
199
199
}
200
200
try (PreparedStatement statement = databaseConfiguration .getConnection ()
201
- .prepareStatement ("select ID from " + changeLogTableName + " order by DATEEXECUTED desc" )) {
201
+ .prepareStatement ("select ID from " + changeLogTableName + " order by DATEEXECUTED" )) {
202
+ String changeLogVersion = null ;
202
203
try (ResultSet resultSet = statement .executeQuery ()) {
203
- if (resultSet .next ()) {
204
- String changeLogVersion = resultSet .getString (1 );
205
- return new ChangeLogVersion (changeLogVersion , getDbVersionForChangelogVersion (changeLogVersion ));
204
+ while (resultSet .next ()) {
205
+ changeLogVersion = resultSet .getString (1 );
206
206
}
207
207
}
208
+ if (changeLogVersion != null ) {
209
+ return new ChangeLogVersion (changeLogVersion , getDbVersionForChangelogVersion (changeLogVersion ));
210
+ }
208
211
} catch (SQLException e ) {
209
212
throw new RuntimeException ("Failed to get change log version from " + changeLogTableName , e );
210
213
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
<!-- Common mappers -->
19
19
<mapper resource =" org/flowable/common/db/mapping/entity/Property.xml" />
20
20
<mapper resource =" org/flowable/common/db/mapping/entity/TableData.xml" />
21
- <mapper resource =" org/flowable/common/db/mapping/ChangeLog.xml" />
22
21
<mapper resource =" org/flowable/common/db/mapping/common.xml" />
23
22
24
23
<!-- Engine mappers -->
You can’t perform that action at this time.
0 commit comments