[fixes #9250] - Wrong query when fetching last model version (#9251)

This commit is contained in:
Pedro Igor 2021-12-21 23:25:06 -08:00 committed by GitHub
parent f201760a4a
commit ca58aa7b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ public final class QuarkusJpaConnectionProviderFactory implements JpaConnectionP
public static final String QUERY_PROPERTY_PREFIX = "kc.query.";
private static final Logger logger = Logger.getLogger(QuarkusJpaConnectionProviderFactory.class);
private static final String SQL_GET_LATEST_VERSION = "SELECT VERSION FROM %sMIGRATION_MODEL";
private static final String SQL_GET_LATEST_VERSION = "SELECT VERSION FROM %sMIGRATION_MODEL ORDER BY UPDATE_TIME DESC";
enum MigrationStrategy {
UPDATE, VALIDATE, MANUAL