Let’s assume you want to add new role ROLE_MANAGER.
1. In /src/main/resources/config/liquibase/authorities.csv
add ROLE_MANAGER in new line.
In src/main/java/.../security/AuthoritiesConstants.java add:
public static final String MANAGER = "ROLE_MANAGER";
4. In table jhi_authority
add ROLE_MANAGER
5. In console run:
./mvnw liquibase:clearCheckSums
- you should have:
- you should have:
- your database username and password provided in org.liquibase plugin configuration in pom.xml
- DATABASECHANGELOGLOCK set to 0 in your database
Brak komentarzy:
Prześlij komentarz