[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:
parent
959cd035ba
commit
3380fdc119
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue