KEYCLOAK-5354 update READMEs (#4443)
This commit is contained in:
parent
8bfab22417
commit
0570e6e218
2 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ Starting Keycloak
|
|||
|
||||
To start Keycloak during development first build as specified above, then run:
|
||||
|
||||
mvn -f testsuite/integration-deprecated/pom.xml exec:java -Pkeycloak-server
|
||||
mvn -f testsuite/utils/pom.xml exec:java -Pkeycloak-server
|
||||
|
||||
|
||||
To start Keycloak from the server distribution first build the distribution it as specified above, then run:
|
||||
|
|
|
@ -35,7 +35,7 @@ You can also have Liquibase and Hibernate create one for you. To do this follow
|
|||
3. Make a copy of the database:
|
||||
`cp keycloak.h2.db keycloak-old.h2.db`
|
||||
3. Run KeycloakServer to make Hibernate update the schema:
|
||||
`mvn -f testsuite/integration-deprecated/pom.xml exec:java -Pkeycloak-server -Dkeycloak.connectionsJpa.url='jdbc:h2:keycloak' -Dkeycloak.connectionsJpa.databaseSchema='development-update'`
|
||||
`mvn -f testsuite/utils/pom.xml exec:java -Pkeycloak-server -Dkeycloak.connectionsJpa.url='jdbc:h2:keycloak' -Dkeycloak.connectionsJpa.databaseSchema='development-update'`
|
||||
4. Wait until server is completely started, then stop it
|
||||
5. View the difference:
|
||||
`mvn -f connections/jpa-liquibase/pom.xml liquibase:diff -Durl=jdbc:h2:keycloak-old -DreferenceUrl=jdbc:h2:keycloak`
|
||||
|
@ -50,11 +50,11 @@ add entries to the `change-set` to update existing data if required.
|
|||
When you have update the change-set Hibernate can validate the schema for you. First run:
|
||||
|
||||
rm -rf keycloak*h2.db
|
||||
mvn -f testsuite/integration-deprecated exec:java -Pkeycloak-server -Dkeycloak.connectionsJpa.url='jdbc:h2:keycloak' -Dkeycloak.connectionsJpa.databaseSchema='update'
|
||||
mvn -f testsuite/utils/pom.xml exec:java -Pkeycloak-server -Dkeycloak.connectionsJpa.url='jdbc:h2:keycloak' -Dkeycloak.connectionsJpa.databaseSchema='update'
|
||||
|
||||
Once the server has started fully, stop it and run:
|
||||
|
||||
mvn -f testsuite/integration-deprecated exec:java -Pkeycloak-server -Dkeycloak.connectionsJpa.url='jdbc:h2:keycloak' -Dkeycloak.connectionsJpa.databaseSchema='development-validate'
|
||||
mvn -f testsuite/utils/pom.xml exec:java -Pkeycloak-server -Dkeycloak.connectionsJpa.url='jdbc:h2:keycloak' -Dkeycloak.connectionsJpa.databaseSchema='development-validate'
|
||||
|
||||
|
||||
Testing database migration
|
||||
|
|
Loading…
Reference in a new issue