[KEYCLOAK-7985] fix the table name error, from RESOURCE_URI to RESOURCE_URIS

Signed-off-by: alva.huang <alva@izhiju.cn>
This commit is contained in:
alva.huang 2018-08-02 08:57:42 +08:00 committed by Pedro Igor
parent 959cd035ba
commit 3380fdc119

View file

@ -23,7 +23,7 @@ public class AuthzResourceUseMoreURIs extends CustomKeycloakTask {
String resourceId = resultSet.getString(1);
String resourceUri = resultSet.getString(2);
InsertStatement insertComponent = new InsertStatement(null, null, database.correctObjectName("RESOURCE_URI", Table.class))
InsertStatement insertComponent = new InsertStatement(null, null, database.correctObjectName("RESOURCE_URIS", Table.class))
.addColumnValue("RESOURCE_ID", resourceId)
.addColumnValue("VALUE", resourceUri);
@ -36,7 +36,7 @@ public class AuthzResourceUseMoreURIs extends CustomKeycloakTask {
statement.close();
}
confirmationMessage.append("Moved " + statements.size() + " records from RESOURCE_SERVER_RESOURCE to RESOURCE_URI table");
confirmationMessage.append("Moved " + statements.size() + " records from RESOURCE_SERVER_RESOURCE to RESOURCE_URIS table");
} catch (Exception e) {
throw new CustomChangeException(getTaskId() + ": Exception when updating data from previous version", e);
}